Style tweaks

This commit is contained in:
inspuration 2014-06-11 00:37:55 -04:00
parent c180fd4003
commit 264335b627
3 changed files with 7 additions and 7 deletions

View file

@ -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[] = {

View file

@ -14,7 +14,7 @@
namespace HID_User {
Handle getMemIPCHandle();
Handle GetMemIPCHandle();
class Interface : public Service::Interface {
public:

View file

@ -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