diff --git a/src/core/hle/service/hid.cpp b/src/core/hle/service/hid.cpp index 85a58563a..f9af74165 100644 --- a/src/core/hle/service/hid.cpp +++ b/src/core/hle/service/hid.cpp @@ -13,16 +13,16 @@ namespace HID_User { -Handle memIPC; +Handle g_mem_ipc; -Handle getMemIPCHandle() { - return memIPC; +Handle GetMemIPCHandle() { + return g_mem_ipc; } void GetIPCHandles(Service::Interface* self) { u32* cmd_buff = Service::GetCommandBuffer(); - memIPC = Kernel::CreateSharedMemory(0x1000); //page size for now - cmd_buff[3] = memIPC; + g_mem_ipc = Kernel::CreateSharedMemory(0x1000); //page size for now + cmd_buff[3] = g_mem_ipc; } const Interface::FunctionInfo FunctionTable[] = { diff --git a/src/core/hle/service/hid.h b/src/core/hle/service/hid.h index 76e609479..ad7919605 100644 --- a/src/core/hle/service/hid.h +++ b/src/core/hle/service/hid.h @@ -14,7 +14,7 @@ namespace HID_User { -Handle getMemIPCHandle(); +Handle GetMemIPCHandle(); class Interface : public Service::Interface { public: diff --git a/src/core/hw/hid.cpp b/src/core/hw/hid.cpp index f904a7e44..740dc6884 100644 --- a/src/core/hw/hid.cpp +++ b/src/core/hw/hid.cpp @@ -6,7 +6,7 @@ namespace HID { void SetButtonReg(u32 buttonData) { - Kernel::WriteSharedMemory(HID_User::getMemIPCHandle(), buttonData, OFFSET_BUTTONS); + Kernel::WriteSharedMemory(HID_User::GetMemIPCHandle(), buttonData, OFFSET_BUTTONS); } /// Update hardware