summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-04-09 03:08:44 +0200
committerbunnei <bunneidev@gmail.com>2020-04-17 06:59:33 +0200
commit8eca0f9cd22fd49470dfcba1132d1cf0f897b6ca (patch)
tree02f49f489a4dcd9846cd0ee745df1ca5a7cf94e7 /src/core/hle/service
parentservice: irs: Update for new shared memory layout. (diff)
downloadyuzu-8eca0f9cd22fd49470dfcba1132d1cf0f897b6ca.tar
yuzu-8eca0f9cd22fd49470dfcba1132d1cf0f897b6ca.tar.gz
yuzu-8eca0f9cd22fd49470dfcba1132d1cf0f897b6ca.tar.bz2
yuzu-8eca0f9cd22fd49470dfcba1132d1cf0f897b6ca.tar.lz
yuzu-8eca0f9cd22fd49470dfcba1132d1cf0f897b6ca.tar.xz
yuzu-8eca0f9cd22fd49470dfcba1132d1cf0f897b6ca.tar.zst
yuzu-8eca0f9cd22fd49470dfcba1132d1cf0f897b6ca.zip
Diffstat (limited to 'src/core/hle/service')
-rw-r--r--src/core/hle/service/hid/hid.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/hle/service/hid/hid.cpp b/src/core/hle/service/hid/hid.cpp
index d6ed5f304..d6031a987 100644
--- a/src/core/hle/service/hid/hid.cpp
+++ b/src/core/hle/service/hid/hid.cpp
@@ -14,6 +14,7 @@
#include "core/hle/ipc_helpers.h"
#include "core/hle/kernel/client_port.h"
#include "core/hle/kernel/client_session.h"
+#include "core/hle/kernel/kernel.h"
#include "core/hle/kernel/readable_event.h"
#include "core/hle/kernel/shared_memory.h"
#include "core/hle/kernel/writable_event.h"
@@ -53,9 +54,7 @@ IAppletResource::IAppletResource(Core::System& system)
RegisterHandlers(functions);
auto& kernel = system.Kernel();
- shared_mem = Kernel::SharedMemory::Create(
- kernel, nullptr, SHARED_MEMORY_SIZE, Kernel::MemoryPermission::ReadWrite,
- Kernel::MemoryPermission::Read, 0, Kernel::MemoryRegion::BASE, "HID:SharedMemory");
+ shared_mem = SharedFrom(&kernel.GetHidSharedMem());
MakeController<Controller_DebugPad>(HidController::DebugPad);
MakeController<Controller_Touchscreen>(HidController::Touchscreen);