diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2023-02-28 01:46:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-28 01:46:10 +0100 |
commit | 22432668be6d34b5a5275bcc631cadf512f36bf9 (patch) | |
tree | 88aeebd3448ad8fa701914839c0b1f3c876c62ac /src/core/hle/service/hid/hidbus/hidbus_base.cpp | |
parent | Merge pull request #9874 from german77/violet (diff) | |
parent | am: avoid direct pointer access of transfer memory objects (diff) | |
download | yuzu-22432668be6d34b5a5275bcc631cadf512f36bf9.tar yuzu-22432668be6d34b5a5275bcc631cadf512f36bf9.tar.gz yuzu-22432668be6d34b5a5275bcc631cadf512f36bf9.tar.bz2 yuzu-22432668be6d34b5a5275bcc631cadf512f36bf9.tar.lz yuzu-22432668be6d34b5a5275bcc631cadf512f36bf9.tar.xz yuzu-22432668be6d34b5a5275bcc631cadf512f36bf9.tar.zst yuzu-22432668be6d34b5a5275bcc631cadf512f36bf9.zip |
Diffstat (limited to 'src/core/hle/service/hid/hidbus/hidbus_base.cpp')
-rw-r--r-- | src/core/hle/service/hid/hidbus/hidbus_base.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/core/hle/service/hid/hidbus/hidbus_base.cpp b/src/core/hle/service/hid/hidbus/hidbus_base.cpp index b569b3c20..dfd23ec04 100644 --- a/src/core/hle/service/hid/hidbus/hidbus_base.cpp +++ b/src/core/hle/service/hid/hidbus/hidbus_base.cpp @@ -9,8 +9,8 @@ namespace Service::HID { -HidbusBase::HidbusBase(KernelHelpers::ServiceContext& service_context_) - : service_context(service_context_) { +HidbusBase::HidbusBase(Core::System& system_, KernelHelpers::ServiceContext& service_context_) + : system(system_), service_context(service_context_) { send_command_async_event = service_context.CreateEvent("hidbus:SendCommandAsyncEvent"); } HidbusBase::~HidbusBase() = default; @@ -59,8 +59,7 @@ void HidbusBase::DisablePollingMode() { polling_mode_enabled = false; } -void HidbusBase::SetTransferMemoryPointer(u8* t_mem) { - is_transfer_memory_set = true; +void HidbusBase::SetTransferMemoryAddress(VAddr t_mem) { transfer_memory = t_mem; } |