diff options
| author | 2014-06-06 00:35:49 -0400 | |
|---|---|---|
| committer | 2014-06-13 09:51:13 -0400 | |
| commit | c95972275e276abe3afcac79d956ea29a0879c8e (patch) | |
| tree | f902b895aa25142f94001674baedfdac9794d548 /src | |
| parent | Kernel: Updated various kernel function "name" arguments to be const references. (diff) | |
| download | yuzu-c95972275e276abe3afcac79d956ea29a0879c8e.tar.gz yuzu-c95972275e276abe3afcac79d956ea29a0879c8e.tar.xz yuzu-c95972275e276abe3afcac79d956ea29a0879c8e.zip | |
HLE: Updated all uses of NULL to nullptr (to be C++11 compliant)
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/core.cpp | 8 | ||||
| -rw-r--r-- | src/core/hle/hle.cpp | 2 | ||||
| -rw-r--r-- | src/core/hle/kernel/kernel.cpp | 2 | ||||
| -rw-r--r-- | src/core/hle/kernel/mutex.cpp | 2 | ||||
| -rw-r--r-- | src/core/hle/kernel/thread.cpp | 14 | ||||
| -rw-r--r-- | src/core/hle/service/apt.cpp | 148 | ||||
| -rw-r--r-- | src/core/hle/service/gsp.cpp | 56 | ||||
| -rw-r--r-- | src/core/hle/service/hid.cpp | 10 | ||||
| -rw-r--r-- | src/core/hle/service/ndm.cpp | 8 | ||||
| -rw-r--r-- | src/core/hle/service/service.cpp | 4 | ||||
| -rw-r--r-- | src/core/hle/service/service.h | 2 | ||||
| -rw-r--r-- | src/core/hle/service/srv.cpp | 8 | ||||
| -rw-r--r-- | src/core/hle/svc.cpp | 214 |
13 files changed, 239 insertions, 239 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp index 26d52f7be..d366498a5 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp | |||
| @@ -18,10 +18,10 @@ | |||
| 18 | 18 | ||
| 19 | namespace Core { | 19 | namespace Core { |
| 20 | 20 | ||
| 21 | u64 g_last_ticks = 0; ///< Last CPU ticks | 21 | u64 g_last_ticks = 0; ///< Last CPU ticks |
| 22 | ARM_Disasm* g_disasm = NULL; ///< ARM disassembler | 22 | ARM_Disasm* g_disasm = nullptr; ///< ARM disassembler |
| 23 | ARM_Interface* g_app_core = NULL; ///< ARM11 application core | 23 | ARM_Interface* g_app_core = nullptr; ///< ARM11 application core |
| 24 | ARM_Interface* g_sys_core = NULL; ///< ARM11 system (OS) core | 24 | ARM_Interface* g_sys_core = nullptr; ///< ARM11 system (OS) core |
| 25 | 25 | ||
| 26 | /// Run the core CPU loop | 26 | /// Run the core CPU loop |
| 27 | void RunLoop() { | 27 | void RunLoop() { |
diff --git a/src/core/hle/hle.cpp b/src/core/hle/hle.cpp index e49395f56..dde6d0f40 100644 --- a/src/core/hle/hle.cpp +++ b/src/core/hle/hle.cpp | |||
| @@ -22,7 +22,7 @@ const FunctionDef* GetSVCInfo(u32 opcode) { | |||
| 22 | u32 func_num = opcode & 0xFFFFFF; // 8 bits | 22 | u32 func_num = opcode & 0xFFFFFF; // 8 bits |
| 23 | if (func_num > 0xFF) { | 23 | if (func_num > 0xFF) { |
| 24 | ERROR_LOG(HLE,"unknown svc=0x%02X", func_num); | 24 | ERROR_LOG(HLE,"unknown svc=0x%02X", func_num); |
| 25 | return NULL; | 25 | return nullptr; |
| 26 | } | 26 | } |
| 27 | return &g_module_db[0].func_table[func_num]; | 27 | return &g_module_db[0].func_table[func_num]; |
| 28 | } | 28 | } |
diff --git a/src/core/hle/kernel/kernel.cpp b/src/core/hle/kernel/kernel.cpp index 9d5991c37..e51a9d45a 100644 --- a/src/core/hle/kernel/kernel.cpp +++ b/src/core/hle/kernel/kernel.cpp | |||
| @@ -128,7 +128,7 @@ Object* ObjectPool::CreateByIDType(int type) { | |||
| 128 | 128 | ||
| 129 | default: | 129 | default: |
| 130 | ERROR_LOG(COMMON, "Unable to load state: could not find object type %d.", type); | 130 | ERROR_LOG(COMMON, "Unable to load state: could not find object type %d.", type); |
| 131 | return NULL; | 131 | return nullptr; |
| 132 | } | 132 | } |
| 133 | } | 133 | } |
| 134 | 134 | ||
diff --git a/src/core/hle/kernel/mutex.cpp b/src/core/hle/kernel/mutex.cpp index a76c8de03..1ccf1eb73 100644 --- a/src/core/hle/kernel/mutex.cpp +++ b/src/core/hle/kernel/mutex.cpp | |||
| @@ -122,7 +122,7 @@ bool ReleaseMutex(Mutex* mutex) { | |||
| 122 | Result ReleaseMutex(Handle handle) { | 122 | Result ReleaseMutex(Handle handle) { |
| 123 | Mutex* mutex = Kernel::g_object_pool.GetFast<Mutex>(handle); | 123 | Mutex* mutex = Kernel::g_object_pool.GetFast<Mutex>(handle); |
| 124 | 124 | ||
| 125 | _assert_msg_(KERNEL, (mutex != NULL), "ReleaseMutex tried to release a NULL mutex!"); | 125 | _assert_msg_(KERNEL, (mutex != nullptr), "ReleaseMutex tried to release a nullptr mutex!"); |
| 126 | 126 | ||
| 127 | if (!ReleaseMutex(mutex)) { | 127 | if (!ReleaseMutex(mutex)) { |
| 128 | return -1; | 128 | return -1; |
diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cpp index 5fdb4fbe6..700f4ea7c 100644 --- a/src/core/hle/kernel/thread.cpp +++ b/src/core/hle/kernel/thread.cpp | |||
| @@ -223,7 +223,7 @@ void SwitchContext(Thread* t) { | |||
| 223 | t->wait_type = WAITTYPE_NONE; | 223 | t->wait_type = WAITTYPE_NONE; |
| 224 | LoadContext(t->context); | 224 | LoadContext(t->context); |
| 225 | } else { | 225 | } else { |
| 226 | SetCurrentThread(NULL); | 226 | SetCurrentThread(nullptr); |
| 227 | } | 227 | } |
| 228 | } | 228 | } |
| 229 | 229 | ||
| @@ -238,7 +238,7 @@ Thread* NextThread() { | |||
| 238 | next = g_thread_ready_queue.pop_first(); | 238 | next = g_thread_ready_queue.pop_first(); |
| 239 | } | 239 | } |
| 240 | if (next == 0) { | 240 | if (next == 0) { |
| 241 | return NULL; | 241 | return nullptr; |
| 242 | } | 242 | } |
| 243 | return Kernel::g_object_pool.GetFast<Thread>(next); | 243 | return Kernel::g_object_pool.GetFast<Thread>(next); |
| 244 | } | 244 | } |
| @@ -312,8 +312,8 @@ Thread* CreateThread(Handle& handle, const char* name, u32 entry_point, s32 prio | |||
| 312 | Handle CreateThread(const char* name, u32 entry_point, s32 priority, u32 arg, s32 processor_id, | 312 | Handle CreateThread(const char* name, u32 entry_point, s32 priority, u32 arg, s32 processor_id, |
| 313 | u32 stack_top, int stack_size) { | 313 | u32 stack_top, int stack_size) { |
| 314 | 314 | ||
| 315 | if (name == NULL) { | 315 | if (name == nullptr) { |
| 316 | ERROR_LOG(KERNEL, "CreateThread(): NULL name"); | 316 | ERROR_LOG(KERNEL, "CreateThread(): nullptr name"); |
| 317 | return -1; | 317 | return -1; |
| 318 | } | 318 | } |
| 319 | if ((u32)stack_size < 0x200) { | 319 | if ((u32)stack_size < 0x200) { |
| @@ -353,19 +353,19 @@ Handle CreateThread(const char* name, u32 entry_point, s32 priority, u32 arg, s3 | |||
| 353 | /// Get the priority of the thread specified by handle | 353 | /// Get the priority of the thread specified by handle |
| 354 | u32 GetThreadPriority(const Handle handle) { | 354 | u32 GetThreadPriority(const Handle handle) { |
| 355 | Thread* thread = g_object_pool.GetFast<Thread>(handle); | 355 | Thread* thread = g_object_pool.GetFast<Thread>(handle); |
| 356 | _assert_msg_(KERNEL, (thread != NULL), "called, but thread is NULL!"); | 356 | _assert_msg_(KERNEL, (thread != nullptr), "called, but thread is nullptr!"); |
| 357 | return thread->current_priority; | 357 | return thread->current_priority; |
| 358 | } | 358 | } |
| 359 | 359 | ||
| 360 | /// Set the priority of the thread specified by handle | 360 | /// Set the priority of the thread specified by handle |
| 361 | Result SetThreadPriority(Handle handle, s32 priority) { | 361 | Result SetThreadPriority(Handle handle, s32 priority) { |
| 362 | Thread* thread = NULL; | 362 | Thread* thread = nullptr; |
| 363 | if (!handle) { | 363 | if (!handle) { |
| 364 | thread = GetCurrentThread(); // TODO(bunnei): Is this correct behavior? | 364 | thread = GetCurrentThread(); // TODO(bunnei): Is this correct behavior? |
| 365 | } else { | 365 | } else { |
| 366 | thread = g_object_pool.GetFast<Thread>(handle); | 366 | thread = g_object_pool.GetFast<Thread>(handle); |
| 367 | } | 367 | } |
| 368 | _assert_msg_(KERNEL, (thread != NULL), "called, but thread is NULL!"); | 368 | _assert_msg_(KERNEL, (thread != nullptr), "called, but thread is nullptr!"); |
| 369 | 369 | ||
| 370 | // If priority is invalid, clamp to valid range | 370 | // If priority is invalid, clamp to valid range |
| 371 | if (priority < THREADPRIO_HIGHEST || priority > THREADPRIO_LOWEST) { | 371 | if (priority < THREADPRIO_HIGHEST || priority > THREADPRIO_LOWEST) { |
diff --git a/src/core/hle/service/apt.cpp b/src/core/hle/service/apt.cpp index 33ee1ec8f..a0012b5dd 100644 --- a/src/core/hle/service/apt.cpp +++ b/src/core/hle/service/apt.cpp | |||
| @@ -55,81 +55,81 @@ const Interface::FunctionInfo FunctionTable[] = { | |||
| 55 | {0x00010040, GetLockHandle, "GetLockHandle"}, | 55 | {0x00010040, GetLockHandle, "GetLockHandle"}, |
| 56 | {0x00020080, Initialize, "Initialize"}, | 56 | {0x00020080, Initialize, "Initialize"}, |
| 57 | {0x00030040, Enable, "Enable"}, | 57 | {0x00030040, Enable, "Enable"}, |
| 58 | {0x00040040, NULL, "Finalize"}, | 58 | {0x00040040, nullptr, "Finalize"}, |
| 59 | {0x00050040, NULL, "GetAppletManInfo"}, | 59 | {0x00050040, nullptr, "GetAppletManInfo"}, |
| 60 | {0x00060040, NULL, "GetAppletInfo"}, | 60 | {0x00060040, nullptr, "GetAppletInfo"}, |
| 61 | {0x00070000, NULL, "GetLastSignaledAppletId"}, | 61 | {0x00070000, nullptr, "GetLastSignaledAppletId"}, |
| 62 | {0x00080000, NULL, "CountRegisteredApplet"}, | 62 | {0x00080000, nullptr, "CountRegisteredApplet"}, |
| 63 | {0x00090040, NULL, "IsRegistered"}, | 63 | {0x00090040, nullptr, "IsRegistered"}, |
| 64 | {0x000A0040, NULL, "GetAttribute"}, | 64 | {0x000A0040, nullptr, "GetAttribute"}, |
| 65 | {0x000B0040, InquireNotification, "InquireNotification"}, | 65 | {0x000B0040, InquireNotification, "InquireNotification"}, |
| 66 | {0x000C0104, NULL, "SendParameter"}, | 66 | {0x000C0104, nullptr, "SendParameter"}, |
| 67 | {0x000D0080, NULL, "ReceiveParameter"}, | 67 | {0x000D0080, nullptr, "ReceiveParameter"}, |
| 68 | {0x000E0080, NULL, "GlanceParameter"}, | 68 | {0x000E0080, nullptr, "GlanceParameter"}, |
| 69 | {0x000F0100, NULL, "CancelParameter"}, | 69 | {0x000F0100, nullptr, "CancelParameter"}, |
| 70 | {0x001000C2, NULL, "DebugFunc"}, | 70 | {0x001000C2, nullptr, "DebugFunc"}, |
| 71 | {0x001100C0, NULL, "MapProgramIdForDebug"}, | 71 | {0x001100C0, nullptr, "MapProgramIdForDebug"}, |
| 72 | {0x00120040, NULL, "SetHomeMenuAppletIdForDebug"}, | 72 | {0x00120040, nullptr, "SetHomeMenuAppletIdForDebug"}, |
| 73 | {0x00130000, NULL, "GetPreparationState"}, | 73 | {0x00130000, nullptr, "GetPreparationState"}, |
| 74 | {0x00140040, NULL, "SetPreparationState"}, | 74 | {0x00140040, nullptr, "SetPreparationState"}, |
| 75 | {0x00150140, NULL, "PrepareToStartApplication"}, | 75 | {0x00150140, nullptr, "PrepareToStartApplication"}, |
| 76 | {0x00160040, NULL, "PreloadLibraryApplet"}, | 76 | {0x00160040, nullptr, "PreloadLibraryApplet"}, |
| 77 | {0x00170040, NULL, "FinishPreloadingLibraryApplet"}, | 77 | {0x00170040, nullptr, "FinishPreloadingLibraryApplet"}, |
| 78 | {0x00180040, NULL, "PrepareToStartLibraryApplet"}, | 78 | {0x00180040, nullptr, "PrepareToStartLibraryApplet"}, |
| 79 | {0x00190040, NULL, "PrepareToStartSystemApplet"}, | 79 | {0x00190040, nullptr, "PrepareToStartSystemApplet"}, |
| 80 | {0x001A0000, NULL, "PrepareToStartNewestHomeMenu"}, | 80 | {0x001A0000, nullptr, "PrepareToStartNewestHomeMenu"}, |
| 81 | {0x001B00C4, NULL, "StartApplication"}, | 81 | {0x001B00C4, nullptr, "StartApplication"}, |
| 82 | {0x001C0000, NULL, "WakeupApplication"}, | 82 | {0x001C0000, nullptr, "WakeupApplication"}, |
| 83 | {0x001D0000, NULL, "CancelApplication"}, | 83 | {0x001D0000, nullptr, "CancelApplication"}, |
| 84 | {0x001E0084, NULL, "StartLibraryApplet"}, | 84 | {0x001E0084, nullptr, "StartLibraryApplet"}, |
| 85 | {0x001F0084, NULL, "StartSystemApplet"}, | 85 | {0x001F0084, nullptr, "StartSystemApplet"}, |
| 86 | {0x00200044, NULL, "StartNewestHomeMenu"}, | 86 | {0x00200044, nullptr, "StartNewestHomeMenu"}, |
| 87 | {0x00210000, NULL, "OrderToCloseApplication"}, | 87 | {0x00210000, nullptr, "OrderToCloseApplication"}, |
| 88 | {0x00220040, NULL, "PrepareToCloseApplication"}, | 88 | {0x00220040, nullptr, "PrepareToCloseApplication"}, |
| 89 | {0x00230040, NULL, "PrepareToJumpToApplication"}, | 89 | {0x00230040, nullptr, "PrepareToJumpToApplication"}, |
| 90 | {0x00240044, NULL, "JumpToApplication"}, | 90 | {0x00240044, nullptr, "JumpToApplication"}, |
| 91 | {0x002500C0, NULL, "PrepareToCloseLibraryApplet"}, | 91 | {0x002500C0, nullptr, "PrepareToCloseLibraryApplet"}, |
| 92 | {0x00260000, NULL, "PrepareToCloseSystemApplet"}, | 92 | {0x00260000, nullptr, "PrepareToCloseSystemApplet"}, |
| 93 | {0x00270044, NULL, "CloseApplication"}, | 93 | {0x00270044, nullptr, "CloseApplication"}, |
| 94 | {0x00280044, NULL, "CloseLibraryApplet"}, | 94 | {0x00280044, nullptr, "CloseLibraryApplet"}, |
| 95 | {0x00290044, NULL, "CloseSystemApplet"}, | 95 | {0x00290044, nullptr, "CloseSystemApplet"}, |
| 96 | {0x002A0000, NULL, "OrderToCloseSystemApplet"}, | 96 | {0x002A0000, nullptr, "OrderToCloseSystemApplet"}, |
| 97 | {0x002B0000, NULL, "PrepareToJumpToHomeMenu"}, | 97 | {0x002B0000, nullptr, "PrepareToJumpToHomeMenu"}, |
| 98 | {0x002C0044, NULL, "JumpToHomeMenu"}, | 98 | {0x002C0044, nullptr, "JumpToHomeMenu"}, |
| 99 | {0x002D0000, NULL, "PrepareToLeaveHomeMenu"}, | 99 | {0x002D0000, nullptr, "PrepareToLeaveHomeMenu"}, |
| 100 | {0x002E0044, NULL, "LeaveHomeMenu"}, | 100 | {0x002E0044, nullptr, "LeaveHomeMenu"}, |
| 101 | {0x002F0040, NULL, "PrepareToLeaveResidentApplet"}, | 101 | {0x002F0040, nullptr, "PrepareToLeaveResidentApplet"}, |
| 102 | {0x00300044, NULL, "LeaveResidentApplet"}, | 102 | {0x00300044, nullptr, "LeaveResidentApplet"}, |
| 103 | {0x00310100, NULL, "PrepareToDoApplicationJump"}, | 103 | {0x00310100, nullptr, "PrepareToDoApplicationJump"}, |
| 104 | {0x00320084, NULL, "DoApplicationJump"}, | 104 | {0x00320084, nullptr, "DoApplicationJump"}, |
| 105 | {0x00330000, NULL, "GetProgramIdOnApplicationJump"}, | 105 | {0x00330000, nullptr, "GetProgramIdOnApplicationJump"}, |
| 106 | {0x00340084, NULL, "SendDeliverArg"}, | 106 | {0x00340084, nullptr, "SendDeliverArg"}, |
| 107 | {0x00350080, NULL, "ReceiveDeliverArg"}, | 107 | {0x00350080, nullptr, "ReceiveDeliverArg"}, |
| 108 | {0x00360040, NULL, "LoadSysMenuArg"}, | 108 | {0x00360040, nullptr, "LoadSysMenuArg"}, |
| 109 | {0x00370042, NULL, "StoreSysMenuArg"}, | 109 | {0x00370042, nullptr, "StoreSysMenuArg"}, |
| 110 | {0x00380040, NULL, "PreloadResidentApplet"}, | 110 | {0x00380040, nullptr, "PreloadResidentApplet"}, |
| 111 | {0x00390040, NULL, "PrepareToStartResidentApplet"}, | 111 | {0x00390040, nullptr, "PrepareToStartResidentApplet"}, |
| 112 | {0x003A0044, NULL, "StartResidentApplet"}, | 112 | {0x003A0044, nullptr, "StartResidentApplet"}, |
| 113 | {0x003B0040, NULL, "CancelLibraryApplet"}, | 113 | {0x003B0040, nullptr, "CancelLibraryApplet"}, |
| 114 | {0x003C0042, NULL, "SendDspSleep"}, | 114 | {0x003C0042, nullptr, "SendDspSleep"}, |
| 115 | {0x003D0042, NULL, "SendDspWakeUp"}, | 115 | {0x003D0042, nullptr, "SendDspWakeUp"}, |
| 116 | {0x003E0080, NULL, "ReplySleepQuery"}, | 116 | {0x003E0080, nullptr, "ReplySleepQuery"}, |
| 117 | {0x003F0040, NULL, "ReplySleepNotificationComplete"}, | 117 | {0x003F0040, nullptr, "ReplySleepNotificationComplete"}, |
| 118 | {0x00400042, NULL, "SendCaptureBufferInfo"}, | 118 | {0x00400042, nullptr, "SendCaptureBufferInfo"}, |
| 119 | {0x00410040, NULL, "ReceiveCaptureBufferInfo"}, | 119 | {0x00410040, nullptr, "ReceiveCaptureBufferInfo"}, |
| 120 | {0x00420080, NULL, "SleepSystem"}, | 120 | {0x00420080, nullptr, "SleepSystem"}, |
| 121 | {0x00430040, NULL, "NotifyToWait"}, | 121 | {0x00430040, nullptr, "NotifyToWait"}, |
| 122 | {0x00440000, NULL, "GetSharedFont"}, | 122 | {0x00440000, nullptr, "GetSharedFont"}, |
| 123 | {0x00450040, NULL, "GetWirelessRebootInfo"}, | 123 | {0x00450040, nullptr, "GetWirelessRebootInfo"}, |
| 124 | {0x00460104, NULL, "Wrap"}, | 124 | {0x00460104, nullptr, "Wrap"}, |
| 125 | {0x00470104, NULL, "Unwrap"}, | 125 | {0x00470104, nullptr, "Unwrap"}, |
| 126 | {0x00480100, NULL, "GetProgramInfo"}, | 126 | {0x00480100, nullptr, "GetProgramInfo"}, |
| 127 | {0x00490180, NULL, "Reboot"}, | 127 | {0x00490180, nullptr, "Reboot"}, |
| 128 | {0x004A0040, NULL, "GetCaptureInfo"}, | 128 | {0x004A0040, nullptr, "GetCaptureInfo"}, |
| 129 | {0x004B00C2, NULL, "AppletUtility"}, | 129 | {0x004B00C2, nullptr, "AppletUtility"}, |
| 130 | {0x004C0000, NULL, "SetFatalErrDispMode"}, | 130 | {0x004C0000, nullptr, "SetFatalErrDispMode"}, |
| 131 | {0x004D0080, NULL, "GetAppletProgramInfo"}, | 131 | {0x004D0080, nullptr, "GetAppletProgramInfo"}, |
| 132 | {0x004E0000, NULL, "HardwareResetAsync"}, | 132 | {0x004E0000, nullptr, "HardwareResetAsync"}, |
| 133 | }; | 133 | }; |
| 134 | 134 | ||
| 135 | //////////////////////////////////////////////////////////////////////////////////////////////////// | 135 | //////////////////////////////////////////////////////////////////////////////////////////////////// |
diff --git a/src/core/hle/service/gsp.cpp b/src/core/hle/service/gsp.cpp index c181e296f..f31e7d86d 100644 --- a/src/core/hle/service/gsp.cpp +++ b/src/core/hle/service/gsp.cpp | |||
| @@ -104,7 +104,7 @@ void RegisterInterruptRelayQueue(Service::Interface* self) { | |||
| 104 | u32 flags = cmd_buff[1]; | 104 | u32 flags = cmd_buff[1]; |
| 105 | u32 event_handle = cmd_buff[3]; | 105 | u32 event_handle = cmd_buff[3]; |
| 106 | 106 | ||
| 107 | _assert_msg_(GSP, (event_handle != 0), "called, but event is NULL!"); | 107 | _assert_msg_(GSP, (event_handle != 0), "called, but event is nullptr!"); |
| 108 | 108 | ||
| 109 | g_event_handle = event_handle; | 109 | g_event_handle = event_handle; |
| 110 | 110 | ||
| @@ -139,36 +139,36 @@ void TriggerCmdReqQueue(Service::Interface* self) { | |||
| 139 | } | 139 | } |
| 140 | 140 | ||
| 141 | const Interface::FunctionInfo FunctionTable[] = { | 141 | const Interface::FunctionInfo FunctionTable[] = { |
| 142 | {0x00010082, NULL, "WriteHWRegs"}, | 142 | {0x00010082, nullptr, "WriteHWRegs"}, |
| 143 | {0x00020084, NULL, "WriteHWRegsWithMask"}, | 143 | {0x00020084, nullptr, "WriteHWRegsWithMask"}, |
| 144 | {0x00030082, NULL, "WriteHWRegRepeat"}, | 144 | {0x00030082, nullptr, "WriteHWRegRepeat"}, |
| 145 | {0x00040080, ReadHWRegs, "ReadHWRegs"}, | 145 | {0x00040080, ReadHWRegs, "ReadHWRegs"}, |
| 146 | {0x00050200, NULL, "SetBufferSwap"}, | 146 | {0x00050200, nullptr, "SetBufferSwap"}, |
| 147 | {0x00060082, NULL, "SetCommandList"}, | 147 | {0x00060082, nullptr, "SetCommandList"}, |
| 148 | {0x000700C2, NULL, "RequestDma"}, | 148 | {0x000700C2, nullptr, "RequestDma"}, |
| 149 | {0x00080082, NULL, "FlushDataCache"}, | 149 | {0x00080082, nullptr, "FlushDataCache"}, |
| 150 | {0x00090082, NULL, "InvalidateDataCache"}, | 150 | {0x00090082, nullptr, "InvalidateDataCache"}, |
| 151 | {0x000A0044, NULL, "RegisterInterruptEvents"}, | 151 | {0x000A0044, nullptr, "RegisterInterruptEvents"}, |
| 152 | {0x000B0040, NULL, "SetLcdForceBlack"}, | 152 | {0x000B0040, nullptr, "SetLcdForceBlack"}, |
| 153 | {0x000C0000, TriggerCmdReqQueue, "TriggerCmdReqQueue"}, | 153 | {0x000C0000, TriggerCmdReqQueue, "TriggerCmdReqQueue"}, |
| 154 | {0x000D0140, NULL, "SetDisplayTransfer"}, | 154 | {0x000D0140, nullptr, "SetDisplayTransfer"}, |
| 155 | {0x000E0180, NULL, "SetTextureCopy"}, | 155 | {0x000E0180, nullptr, "SetTextureCopy"}, |
| 156 | {0x000F0200, NULL, "SetMemoryFill"}, | 156 | {0x000F0200, nullptr, "SetMemoryFill"}, |
| 157 | {0x00100040, NULL, "SetAxiConfigQoSMode"}, | 157 | {0x00100040, nullptr, "SetAxiConfigQoSMode"}, |
| 158 | {0x00110040, NULL, "SetPerfLogMode"}, | 158 | {0x00110040, nullptr, "SetPerfLogMode"}, |
| 159 | {0x00120000, NULL, "GetPerfLog"}, | 159 | {0x00120000, nullptr, "GetPerfLog"}, |
| 160 | {0x00130042, RegisterInterruptRelayQueue, "RegisterInterruptRelayQueue"}, | 160 | {0x00130042, RegisterInterruptRelayQueue, "RegisterInterruptRelayQueue"}, |
| 161 | {0x00140000, NULL, "UnregisterInterruptRelayQueue"}, | 161 | {0x00140000, nullptr, "UnregisterInterruptRelayQueue"}, |
| 162 | {0x00150002, NULL, "TryAcquireRight"}, | 162 | {0x00150002, nullptr, "TryAcquireRight"}, |
| 163 | {0x00160042, NULL, "AcquireRight"}, | 163 | {0x00160042, nullptr, "AcquireRight"}, |
| 164 | {0x00170000, NULL, "ReleaseRight"}, | 164 | {0x00170000, nullptr, "ReleaseRight"}, |
| 165 | {0x00180000, NULL, "ImportDisplayCaptureInfo"}, | 165 | {0x00180000, nullptr, "ImportDisplayCaptureInfo"}, |
| 166 | {0x00190000, NULL, "SaveVramSysArea"}, | 166 | {0x00190000, nullptr, "SaveVramSysArea"}, |
| 167 | {0x001A0000, NULL, "RestoreVramSysArea"}, | 167 | {0x001A0000, nullptr, "RestoreVramSysArea"}, |
| 168 | {0x001B0000, NULL, "ResetGpuCore"}, | 168 | {0x001B0000, nullptr, "ResetGpuCore"}, |
| 169 | {0x001C0040, NULL, "SetLedForceOff"}, | 169 | {0x001C0040, nullptr, "SetLedForceOff"}, |
| 170 | {0x001D0040, NULL, "SetTestCommand"}, | 170 | {0x001D0040, nullptr, "SetTestCommand"}, |
| 171 | {0x001E0080, NULL, "SetInternalPriorities"}, | 171 | {0x001E0080, nullptr, "SetInternalPriorities"}, |
| 172 | }; | 172 | }; |
| 173 | 173 | ||
| 174 | //////////////////////////////////////////////////////////////////////////////////////////////////// | 174 | //////////////////////////////////////////////////////////////////////////////////////////////////// |
diff --git a/src/core/hle/service/hid.cpp b/src/core/hle/service/hid.cpp index 5542e5bf2..ab78f47d7 100644 --- a/src/core/hle/service/hid.cpp +++ b/src/core/hle/service/hid.cpp | |||
| @@ -13,11 +13,11 @@ | |||
| 13 | namespace HID_User { | 13 | namespace HID_User { |
| 14 | 14 | ||
| 15 | const Interface::FunctionInfo FunctionTable[] = { | 15 | const Interface::FunctionInfo FunctionTable[] = { |
| 16 | {0x000A0000, NULL, "GetIPCHandles"}, | 16 | {0x000A0000, nullptr, "GetIPCHandles"}, |
| 17 | {0x00110000, NULL, "EnableAccelerometer"}, | 17 | {0x00110000, nullptr, "EnableAccelerometer"}, |
| 18 | {0x00130000, NULL, "EnableGyroscopeLow"}, | 18 | {0x00130000, nullptr, "EnableGyroscopeLow"}, |
| 19 | {0x00150000, NULL, "GetGyroscopeLowRawToDpsCoefficient"}, | 19 | {0x00150000, nullptr, "GetGyroscopeLowRawToDpsCoefficient"}, |
| 20 | {0x00160000, NULL, "GetGyroscopeLowCalibrateParam"}, | 20 | {0x00160000, nullptr, "GetGyroscopeLowCalibrateParam"}, |
| 21 | }; | 21 | }; |
| 22 | 22 | ||
| 23 | //////////////////////////////////////////////////////////////////////////////////////////////////// | 23 | //////////////////////////////////////////////////////////////////////////////////////////////////// |
diff --git a/src/core/hle/service/ndm.cpp b/src/core/hle/service/ndm.cpp index 671e9d4bd..48755b6a7 100644 --- a/src/core/hle/service/ndm.cpp +++ b/src/core/hle/service/ndm.cpp | |||
| @@ -13,10 +13,10 @@ | |||
| 13 | namespace NDM_U { | 13 | namespace NDM_U { |
| 14 | 14 | ||
| 15 | const Interface::FunctionInfo FunctionTable[] = { | 15 | const Interface::FunctionInfo FunctionTable[] = { |
| 16 | {0x00060040, NULL, "SuspendDaemons"}, | 16 | {0x00060040, nullptr, "SuspendDaemons"}, |
| 17 | {0x00080040, NULL, "DisableWifiUsage"}, | 17 | {0x00080040, nullptr, "DisableWifiUsage"}, |
| 18 | {0x00090000, NULL, "EnableWifiUsage"}, | 18 | {0x00090000, nullptr, "EnableWifiUsage"}, |
| 19 | {0x00140040, NULL, "OverrideDefaultDaemons"}, | 19 | {0x00140040, nullptr, "OverrideDefaultDaemons"}, |
| 20 | }; | 20 | }; |
| 21 | 21 | ||
| 22 | //////////////////////////////////////////////////////////////////////////////////////////////////// | 22 | //////////////////////////////////////////////////////////////////////////////////////////////////// |
diff --git a/src/core/hle/service/service.cpp b/src/core/hle/service/service.cpp index 781b41fb0..4a1ac857e 100644 --- a/src/core/hle/service/service.cpp +++ b/src/core/hle/service/service.cpp | |||
| @@ -19,7 +19,7 @@ | |||
| 19 | 19 | ||
| 20 | namespace Service { | 20 | namespace Service { |
| 21 | 21 | ||
| 22 | Manager* g_manager = NULL; ///< Service manager | 22 | Manager* g_manager = nullptr; ///< Service manager |
| 23 | 23 | ||
| 24 | //////////////////////////////////////////////////////////////////////////////////////////////////// | 24 | //////////////////////////////////////////////////////////////////////////////////////////////////// |
| 25 | // Service Manager class | 25 | // Service Manager class |
| @@ -56,7 +56,7 @@ Interface* Manager::FetchFromHandle(Handle handle) { | |||
| 56 | Interface* Manager::FetchFromPortName(std::string port_name) { | 56 | Interface* Manager::FetchFromPortName(std::string port_name) { |
| 57 | auto itr = m_port_map.find(port_name); | 57 | auto itr = m_port_map.find(port_name); |
| 58 | if (itr == m_port_map.end()) { | 58 | if (itr == m_port_map.end()) { |
| 59 | return NULL; | 59 | return nullptr; |
| 60 | } | 60 | } |
| 61 | return FetchFromHandle(itr->second); | 61 | return FetchFromHandle(itr->second); |
| 62 | } | 62 | } |
diff --git a/src/core/hle/service/service.h b/src/core/hle/service/service.h index 4b5c5b3c8..166d13038 100644 --- a/src/core/hle/service/service.h +++ b/src/core/hle/service/service.h | |||
| @@ -93,7 +93,7 @@ public: | |||
| 93 | cmd_buff[1] = 0; | 93 | cmd_buff[1] = 0; |
| 94 | return 0; | 94 | return 0; |
| 95 | } | 95 | } |
| 96 | if (itr->second.func == NULL) { | 96 | if (itr->second.func == nullptr) { |
| 97 | ERROR_LOG(OSHLE, "unimplemented function: port=%s, name=%s", | 97 | ERROR_LOG(OSHLE, "unimplemented function: port=%s, name=%s", |
| 98 | GetPortName(), itr->second.name.c_str()); | 98 | GetPortName(), itr->second.name.c_str()); |
| 99 | 99 | ||
diff --git a/src/core/hle/service/srv.cpp b/src/core/hle/service/srv.cpp index 07e2009a0..f45c0efc2 100644 --- a/src/core/hle/service/srv.cpp +++ b/src/core/hle/service/srv.cpp | |||
| @@ -26,7 +26,7 @@ void GetProcSemaphore(Service::Interface* self) { | |||
| 26 | // Get process semaphore? | 26 | // Get process semaphore? |
| 27 | u32* cmd_buff = Service::GetCommandBuffer(); | 27 | u32* cmd_buff = Service::GetCommandBuffer(); |
| 28 | cmd_buff[1] = 0; // No error | 28 | cmd_buff[1] = 0; // No error |
| 29 | cmd_buff[3] = g_mutex; // Return something... 0 == NULL, raises an exception | 29 | cmd_buff[3] = g_mutex; // Return something... 0 == nullptr, raises an exception |
| 30 | } | 30 | } |
| 31 | 31 | ||
| 32 | void GetServiceHandle(Service::Interface* self) { | 32 | void GetServiceHandle(Service::Interface* self) { |
| @@ -36,7 +36,7 @@ void GetServiceHandle(Service::Interface* self) { | |||
| 36 | std::string port_name = std::string((const char*)&cmd_buff[1], 0, Service::kMaxPortSize); | 36 | std::string port_name = std::string((const char*)&cmd_buff[1], 0, Service::kMaxPortSize); |
| 37 | Service::Interface* service = Service::g_manager->FetchFromPortName(port_name); | 37 | Service::Interface* service = Service::g_manager->FetchFromPortName(port_name); |
| 38 | 38 | ||
| 39 | if (NULL != service) { | 39 | if (nullptr != service) { |
| 40 | cmd_buff[3] = service->GetHandle(); | 40 | cmd_buff[3] = service->GetHandle(); |
| 41 | DEBUG_LOG(OSHLE, "called port=%s, handle=0x%08X", port_name.c_str(), cmd_buff[3]); | 41 | DEBUG_LOG(OSHLE, "called port=%s, handle=0x%08X", port_name.c_str(), cmd_buff[3]); |
| 42 | } else { | 42 | } else { |
| @@ -49,8 +49,8 @@ void GetServiceHandle(Service::Interface* self) { | |||
| 49 | const Interface::FunctionInfo FunctionTable[] = { | 49 | const Interface::FunctionInfo FunctionTable[] = { |
| 50 | {0x00010002, Initialize, "Initialize"}, | 50 | {0x00010002, Initialize, "Initialize"}, |
| 51 | {0x00020000, GetProcSemaphore, "GetProcSemaphore"}, | 51 | {0x00020000, GetProcSemaphore, "GetProcSemaphore"}, |
| 52 | {0x00030100, NULL, "RegisterService"}, | 52 | {0x00030100, nullptr, "RegisterService"}, |
| 53 | {0x000400C0, NULL, "UnregisterService"}, | 53 | {0x000400C0, nullptr, "UnregisterService"}, |
| 54 | {0x00050100, GetServiceHandle, "GetServiceHandle"}, | 54 | {0x00050100, GetServiceHandle, "GetServiceHandle"}, |
| 55 | }; | 55 | }; |
| 56 | 56 | ||
diff --git a/src/core/hle/svc.cpp b/src/core/hle/svc.cpp index c389bbaac..01fc056a1 100644 --- a/src/core/hle/svc.cpp +++ b/src/core/hle/svc.cpp | |||
| @@ -81,7 +81,7 @@ Result ConnectToPort(void* _out, const char* port_name) { | |||
| 81 | Service::Interface* service = Service::g_manager->FetchFromPortName(port_name); | 81 | Service::Interface* service = Service::g_manager->FetchFromPortName(port_name); |
| 82 | 82 | ||
| 83 | DEBUG_LOG(SVC, "called port_name=%s", port_name); | 83 | DEBUG_LOG(SVC, "called port_name=%s", port_name); |
| 84 | _assert_msg_(KERNEL, (service != NULL), "called, but service is not implemented!"); | 84 | _assert_msg_(KERNEL, (service != nullptr), "called, but service is not implemented!"); |
| 85 | 85 | ||
| 86 | *out = service->GetHandle(); | 86 | *out = service->GetHandle(); |
| 87 | 87 | ||
| @@ -93,7 +93,7 @@ Result SendSyncRequest(Handle handle) { | |||
| 93 | bool wait = false; | 93 | bool wait = false; |
| 94 | Kernel::Object* object = Kernel::g_object_pool.GetFast<Kernel::Object>(handle); | 94 | Kernel::Object* object = Kernel::g_object_pool.GetFast<Kernel::Object>(handle); |
| 95 | 95 | ||
| 96 | _assert_msg_(KERNEL, (object != NULL), "called, but kernel object is NULL!"); | 96 | _assert_msg_(KERNEL, (object != nullptr), "called, but kernel object is nullptr!"); |
| 97 | DEBUG_LOG(SVC, "called handle=0x%08X(%s)", handle, object->GetTypeName()); | 97 | DEBUG_LOG(SVC, "called handle=0x%08X(%s)", handle, object->GetTypeName()); |
| 98 | 98 | ||
| 99 | Result res = object->SyncRequest(&wait); | 99 | Result res = object->SyncRequest(&wait); |
| @@ -122,7 +122,7 @@ Result WaitSynchronization1(Handle handle, s64 nano_seconds) { | |||
| 122 | DEBUG_LOG(SVC, "called handle=0x%08X(%s:%s), nanoseconds=%d", handle, object->GetTypeName(), | 122 | DEBUG_LOG(SVC, "called handle=0x%08X(%s:%s), nanoseconds=%d", handle, object->GetTypeName(), |
| 123 | object->GetName(), nano_seconds); | 123 | object->GetName(), nano_seconds); |
| 124 | 124 | ||
| 125 | _assert_msg_(KERNEL, (object != NULL), "called, but kernel object is NULL!"); | 125 | _assert_msg_(KERNEL, (object != nullptr), "called, but kernel object is nullptr!"); |
| 126 | 126 | ||
| 127 | Result res = object->WaitSynchronization(&wait); | 127 | Result res = object->WaitSynchronization(&wait); |
| 128 | 128 | ||
| @@ -152,8 +152,8 @@ Result WaitSynchronizationN(void* _out, void* _handles, u32 handle_count, u32 wa | |||
| 152 | bool wait = false; | 152 | bool wait = false; |
| 153 | Kernel::Object* object = Kernel::g_object_pool.GetFast<Kernel::Object>(handles[i]); | 153 | Kernel::Object* object = Kernel::g_object_pool.GetFast<Kernel::Object>(handles[i]); |
| 154 | 154 | ||
| 155 | _assert_msg_(KERNEL, (object != NULL), "called handle=0x%08X, but kernel object " | 155 | _assert_msg_(KERNEL, (object != nullptr), "called handle=0x%08X, but kernel object " |
| 156 | "is NULL!", handles[i]); | 156 | "is nullptr!", handles[i]); |
| 157 | 157 | ||
| 158 | DEBUG_LOG(SVC, "\thandle[%d] = 0x%08X(%s:%s)", i, handles[i], object->GetTypeName(), | 158 | DEBUG_LOG(SVC, "\thandle[%d] = 0x%08X(%s:%s)", i, handles[i], object->GetTypeName(), |
| 159 | object->GetName()); | 159 | object->GetName()); |
| @@ -278,7 +278,7 @@ Result CreateMutex(void* _mutex, u32 initial_locked) { | |||
| 278 | /// Release a mutex | 278 | /// Release a mutex |
| 279 | Result ReleaseMutex(Handle handle) { | 279 | Result ReleaseMutex(Handle handle) { |
| 280 | DEBUG_LOG(SVC, "called handle=0x%08X", handle); | 280 | DEBUG_LOG(SVC, "called handle=0x%08X", handle); |
| 281 | _assert_msg_(KERNEL, (handle != 0), "called, but handle is NULL!"); | 281 | _assert_msg_(KERNEL, (handle != 0), "called, but handle is nullptr!"); |
| 282 | Kernel::ReleaseMutex(handle); | 282 | Kernel::ReleaseMutex(handle); |
| 283 | return 0; | 283 | return 0; |
| 284 | } | 284 | } |
| @@ -342,132 +342,132 @@ void SleepThread(s64 nanoseconds) { | |||
| 342 | } | 342 | } |
| 343 | 343 | ||
| 344 | const HLE::FunctionDef SVC_Table[] = { | 344 | const HLE::FunctionDef SVC_Table[] = { |
| 345 | {0x00, NULL, "Unknown"}, | 345 | {0x00, nullptr, "Unknown"}, |
| 346 | {0x01, WrapI_VUUUUU<ControlMemory>, "ControlMemory"}, | 346 | {0x01, WrapI_VUUUUU<ControlMemory>, "ControlMemory"}, |
| 347 | {0x02, WrapI_VVU<QueryMemory>, "QueryMemory"}, | 347 | {0x02, WrapI_VVU<QueryMemory>, "QueryMemory"}, |
| 348 | {0x03, NULL, "ExitProcess"}, | 348 | {0x03, nullptr, "ExitProcess"}, |
| 349 | {0x04, NULL, "GetProcessAffinityMask"}, | 349 | {0x04, nullptr, "GetProcessAffinityMask"}, |
| 350 | {0x05, NULL, "SetProcessAffinityMask"}, | 350 | {0x05, nullptr, "SetProcessAffinityMask"}, |
| 351 | {0x06, NULL, "GetProcessIdealProcessor"}, | 351 | {0x06, nullptr, "GetProcessIdealProcessor"}, |
| 352 | {0x07, NULL, "SetProcessIdealProcessor"}, | 352 | {0x07, nullptr, "SetProcessIdealProcessor"}, |
| 353 | {0x08, WrapI_UUUUU<CreateThread>, "CreateThread"}, | 353 | {0x08, WrapI_UUUUU<CreateThread>, "CreateThread"}, |
| 354 | {0x09, WrapU_V<ExitThread>, "ExitThread"}, | 354 | {0x09, WrapU_V<ExitThread>, "ExitThread"}, |
| 355 | {0x0A, WrapV_S64<SleepThread>, "SleepThread"}, | 355 | {0x0A, WrapV_S64<SleepThread>, "SleepThread"}, |
| 356 | {0x0B, WrapI_VU<GetThreadPriority>, "GetThreadPriority"}, | 356 | {0x0B, WrapI_VU<GetThreadPriority>, "GetThreadPriority"}, |
| 357 | {0x0C, WrapI_UI<SetThreadPriority>, "SetThreadPriority"}, | 357 | {0x0C, WrapI_UI<SetThreadPriority>, "SetThreadPriority"}, |
| 358 | {0x0D, NULL, "GetThreadAffinityMask"}, | 358 | {0x0D, nullptr, "GetThreadAffinityMask"}, |
| 359 | {0x0E, NULL, "SetThreadAffinityMask"}, | 359 | {0x0E, nullptr, "SetThreadAffinityMask"}, |
| 360 | {0x0F, NULL, "GetThreadIdealProcessor"}, | 360 | {0x0F, nullptr, "GetThreadIdealProcessor"}, |
| 361 | {0x10, NULL, "SetThreadIdealProcessor"}, | 361 | {0x10, nullptr, "SetThreadIdealProcessor"}, |
| 362 | {0x11, NULL, "GetCurrentProcessorNumber"}, | 362 | {0x11, nullptr, "GetCurrentProcessorNumber"}, |
| 363 | {0x12, NULL, "Run"}, | 363 | {0x12, nullptr, "Run"}, |
| 364 | {0x13, WrapI_VU<CreateMutex>, "CreateMutex"}, | 364 | {0x13, WrapI_VU<CreateMutex>, "CreateMutex"}, |
| 365 | {0x14, WrapI_U<ReleaseMutex>, "ReleaseMutex"}, | 365 | {0x14, WrapI_U<ReleaseMutex>, "ReleaseMutex"}, |
| 366 | {0x15, NULL, "CreateSemaphore"}, | 366 | {0x15, nullptr, "CreateSemaphore"}, |
| 367 | {0x16, NULL, "ReleaseSemaphore"}, | 367 | {0x16, nullptr, "ReleaseSemaphore"}, |
| 368 | {0x17, WrapI_VU<CreateEvent>, "CreateEvent"}, | 368 | {0x17, WrapI_VU<CreateEvent>, "CreateEvent"}, |
| 369 | {0x18, WrapI_U<SignalEvent>, "SignalEvent"}, | 369 | {0x18, WrapI_U<SignalEvent>, "SignalEvent"}, |
| 370 | {0x19, WrapI_U<ClearEvent>, "ClearEvent"}, | 370 | {0x19, WrapI_U<ClearEvent>, "ClearEvent"}, |
| 371 | {0x1A, NULL, "CreateTimer"}, | 371 | {0x1A, nullptr, "CreateTimer"}, |
| 372 | {0x1B, NULL, "SetTimer"}, | 372 | {0x1B, nullptr, "SetTimer"}, |
| 373 | {0x1C, NULL, "CancelTimer"}, | 373 | {0x1C, nullptr, "CancelTimer"}, |
| 374 | {0x1D, NULL, "ClearTimer"}, | 374 | {0x1D, nullptr, "ClearTimer"}, |
| 375 | {0x1E, NULL, "CreateMemoryBlock"}, | 375 | {0x1E, nullptr, "CreateMemoryBlock"}, |
| 376 | {0x1F, WrapI_UUUU<MapMemoryBlock>, "MapMemoryBlock"}, | 376 | {0x1F, WrapI_UUUU<MapMemoryBlock>, "MapMemoryBlock"}, |
| 377 | {0x20, NULL, "UnmapMemoryBlock"}, | 377 | {0x20, nullptr, "UnmapMemoryBlock"}, |
| 378 | {0x21, WrapI_V<CreateAddressArbiter>, "CreateAddressArbiter"}, | 378 | {0x21, WrapI_V<CreateAddressArbiter>, "CreateAddressArbiter"}, |
| 379 | {0x22, WrapI_UUUUS64<ArbitrateAddress>, "ArbitrateAddress"}, | 379 | {0x22, WrapI_UUUUS64<ArbitrateAddress>, "ArbitrateAddress"}, |
| 380 | {0x23, WrapI_U<CloseHandle>, "CloseHandle"}, | 380 | {0x23, WrapI_U<CloseHandle>, "CloseHandle"}, |
| 381 | {0x24, WrapI_US64<WaitSynchronization1>, "WaitSynchronization1"}, | 381 | {0x24, WrapI_US64<WaitSynchronization1>, "WaitSynchronization1"}, |
| 382 | {0x25, WrapI_VVUUS64<WaitSynchronizationN>, "WaitSynchronizationN"}, | 382 | {0x25, WrapI_VVUUS64<WaitSynchronizationN>, "WaitSynchronizationN"}, |
| 383 | {0x26, NULL, "SignalAndWait"}, | 383 | {0x26, nullptr, "SignalAndWait"}, |
| 384 | {0x27, WrapI_VU<DuplicateHandle>, "DuplicateHandle"}, | 384 | {0x27, WrapI_VU<DuplicateHandle>, "DuplicateHandle"}, |
| 385 | {0x28, NULL, "GetSystemTick"}, | 385 | {0x28, nullptr, "GetSystemTick"}, |
| 386 | {0x29, NULL, "GetHandleInfo"}, | 386 | {0x29, nullptr, "GetHandleInfo"}, |
| 387 | {0x2A, NULL, "GetSystemInfo"}, | 387 | {0x2A, nullptr, "GetSystemInfo"}, |
| 388 | {0x2B, NULL, "GetProcessInfo"}, | 388 | {0x2B, nullptr, "GetProcessInfo"}, |
| 389 | {0x2C, NULL, "GetThreadInfo"}, | 389 | {0x2C, nullptr, "GetThreadInfo"}, |
| 390 | {0x2D, WrapI_VC<ConnectToPort>, "ConnectToPort"}, | 390 | {0x2D, WrapI_VC<ConnectToPort>, "ConnectToPort"}, |
| 391 | {0x2E, NULL, "SendSyncRequest1"}, | 391 | {0x2E, nullptr, "SendSyncRequest1"}, |
| 392 | {0x2F, NULL, "SendSyncRequest2"}, | 392 | {0x2F, nullptr, "SendSyncRequest2"}, |
| 393 | {0x30, NULL, "SendSyncRequest3"}, | 393 | {0x30, nullptr, "SendSyncRequest3"}, |
| 394 | {0x31, NULL, "SendSyncRequest4"}, | 394 | {0x31, nullptr, "SendSyncRequest4"}, |
| 395 | {0x32, WrapI_U<SendSyncRequest>, "SendSyncRequest"}, | 395 | {0x32, WrapI_U<SendSyncRequest>, "SendSyncRequest"}, |
| 396 | {0x33, NULL, "OpenProcess"}, | 396 | {0x33, nullptr, "OpenProcess"}, |
| 397 | {0x34, NULL, "OpenThread"}, | 397 | {0x34, nullptr, "OpenThread"}, |
| 398 | {0x35, NULL, "GetProcessId"}, | 398 | {0x35, nullptr, "GetProcessId"}, |
| 399 | {0x36, NULL, "GetProcessIdOfThread"}, | 399 | {0x36, nullptr, "GetProcessIdOfThread"}, |
| 400 | {0x37, WrapI_VU<GetThreadId>, "GetThreadId"}, | 400 | {0x37, WrapI_VU<GetThreadId>, "GetThreadId"}, |
| 401 | {0x38, WrapI_VU<GetResourceLimit>, "GetResourceLimit"}, | 401 | {0x38, WrapI_VU<GetResourceLimit>, "GetResourceLimit"}, |
| 402 | {0x39, NULL, "GetResourceLimitLimitValues"}, | 402 | {0x39, nullptr, "GetResourceLimitLimitValues"}, |
| 403 | {0x3A, WrapI_VUVI<GetResourceLimitCurrentValues>, "GetResourceLimitCurrentValues"}, | 403 | {0x3A, WrapI_VUVI<GetResourceLimitCurrentValues>, "GetResourceLimitCurrentValues"}, |
| 404 | {0x3B, NULL, "GetThreadContext"}, | 404 | {0x3B, nullptr, "GetThreadContext"}, |
| 405 | {0x3C, NULL, "Break"}, | 405 | {0x3C, nullptr, "Break"}, |
| 406 | {0x3D, WrapV_C<OutputDebugString>, "OutputDebugString"}, | 406 | {0x3D, WrapV_C<OutputDebugString>, "OutputDebugString"}, |
| 407 | {0x3E, NULL, "ControlPerformanceCounter"}, | 407 | {0x3E, nullptr, "ControlPerformanceCounter"}, |
| 408 | {0x3F, NULL, "Unknown"}, | 408 | {0x3F, nullptr, "Unknown"}, |
| 409 | {0x40, NULL, "Unknown"}, | 409 | {0x40, nullptr, "Unknown"}, |
| 410 | {0x41, NULL, "Unknown"}, | 410 | {0x41, nullptr, "Unknown"}, |
| 411 | {0x42, NULL, "Unknown"}, | 411 | {0x42, nullptr, "Unknown"}, |
| 412 | {0x43, NULL, "Unknown"}, | 412 | {0x43, nullptr, "Unknown"}, |
| 413 | {0x44, NULL, "Unknown"}, | 413 | {0x44, nullptr, "Unknown"}, |
| 414 | {0x45, NULL, "Unknown"}, | 414 | {0x45, nullptr, "Unknown"}, |
| 415 | {0x46, NULL, "Unknown"}, | 415 | {0x46, nullptr, "Unknown"}, |
| 416 | {0x47, NULL, "CreatePort"}, | 416 | {0x47, nullptr, "CreatePort"}, |
| 417 | {0x48, NULL, "CreateSessionToPort"}, | 417 | {0x48, nullptr, "CreateSessionToPort"}, |
| 418 | {0x49, NULL, "CreateSession"}, | 418 | {0x49, nullptr, "CreateSession"}, |
| 419 | {0x4A, NULL, "AcceptSession"}, | 419 | {0x4A, nullptr, "AcceptSession"}, |
| 420 | {0x4B, NULL, "ReplyAndReceive1"}, | 420 | {0x4B, nullptr, "ReplyAndReceive1"}, |
| 421 | {0x4C, NULL, "ReplyAndReceive2"}, | 421 | {0x4C, nullptr, "ReplyAndReceive2"}, |
| 422 | {0x4D, NULL, "ReplyAndReceive3"}, | 422 | {0x4D, nullptr, "ReplyAndReceive3"}, |
| 423 | {0x4E, NULL, "ReplyAndReceive4"}, | 423 | {0x4E, nullptr, "ReplyAndReceive4"}, |
| 424 | {0x4F, NULL, "ReplyAndReceive"}, | 424 | {0x4F, nullptr, "ReplyAndReceive"}, |
| 425 | {0x50, NULL, "BindInterrupt"}, | 425 | {0x50, nullptr, "BindInterrupt"}, |
| 426 | {0x51, NULL, "UnbindInterrupt"}, | 426 | {0x51, nullptr, "UnbindInterrupt"}, |
| 427 | {0x52, NULL, "InvalidateProcessDataCache"}, | 427 | {0x52, nullptr, "InvalidateProcessDataCache"}, |
| 428 | {0x53, NULL, "StoreProcessDataCache"}, | 428 | {0x53, nullptr, "StoreProcessDataCache"}, |
| 429 | {0x54, NULL, "FlushProcessDataCache"}, | 429 | {0x54, nullptr, "FlushProcessDataCache"}, |
| 430 | {0x55, NULL, "StartInterProcessDma"}, | 430 | {0x55, nullptr, "StartInterProcessDma"}, |
| 431 | {0x56, NULL, "StopDma"}, | 431 | {0x56, nullptr, "StopDma"}, |
| 432 | {0x57, NULL, "GetDmaState"}, | 432 | {0x57, nullptr, "GetDmaState"}, |
| 433 | {0x58, NULL, "RestartDma"}, | 433 | {0x58, nullptr, "RestartDma"}, |
| 434 | {0x59, NULL, "Unknown"}, | 434 | {0x59, nullptr, "Unknown"}, |
| 435 | {0x5A, NULL, "Unknown"}, | 435 | {0x5A, nullptr, "Unknown"}, |
| 436 | {0x5B, NULL, "Unknown"}, | 436 | {0x5B, nullptr, "Unknown"}, |
| 437 | {0x5C, NULL, "Unknown"}, | 437 | {0x5C, nullptr, "Unknown"}, |
| 438 | {0x5D, NULL, "Unknown"}, | 438 | {0x5D, nullptr, "Unknown"}, |
| 439 | {0x5E, NULL, "Unknown"}, | 439 | {0x5E, nullptr, "Unknown"}, |
| 440 | {0x5F, NULL, "Unknown"}, | 440 | {0x5F, nullptr, "Unknown"}, |
| 441 | {0x60, NULL, "DebugActiveProcess"}, | 441 | {0x60, nullptr, "DebugActiveProcess"}, |
| 442 | {0x61, NULL, "BreakDebugProcess"}, | 442 | {0x61, nullptr, "BreakDebugProcess"}, |
| 443 | {0x62, NULL, "TerminateDebugProcess"}, | 443 | {0x62, nullptr, "TerminateDebugProcess"}, |
| 444 | {0x63, NULL, "GetProcessDebugEvent"}, | 444 | {0x63, nullptr, "GetProcessDebugEvent"}, |
| 445 | {0x64, NULL, "ContinueDebugEvent"}, | 445 | {0x64, nullptr, "ContinueDebugEvent"}, |
| 446 | {0x65, NULL, "GetProcessList"}, | 446 | {0x65, nullptr, "GetProcessList"}, |
| 447 | {0x66, NULL, "GetThreadList"}, | 447 | {0x66, nullptr, "GetThreadList"}, |
| 448 | {0x67, NULL, "GetDebugThreadContext"}, | 448 | {0x67, nullptr, "GetDebugThreadContext"}, |
| 449 | {0x68, NULL, "SetDebugThreadContext"}, | 449 | {0x68, nullptr, "SetDebugThreadContext"}, |
| 450 | {0x69, NULL, "QueryDebugProcessMemory"}, | 450 | {0x69, nullptr, "QueryDebugProcessMemory"}, |
| 451 | {0x6A, NULL, "ReadProcessMemory"}, | 451 | {0x6A, nullptr, "ReadProcessMemory"}, |
| 452 | {0x6B, NULL, "WriteProcessMemory"}, | 452 | {0x6B, nullptr, "WriteProcessMemory"}, |
| 453 | {0x6C, NULL, "SetHardwareBreakPoint"}, | 453 | {0x6C, nullptr, "SetHardwareBreakPoint"}, |
| 454 | {0x6D, NULL, "GetDebugThreadParam"}, | 454 | {0x6D, nullptr, "GetDebugThreadParam"}, |
| 455 | {0x6E, NULL, "Unknown"}, | 455 | {0x6E, nullptr, "Unknown"}, |
| 456 | {0x6F, NULL, "Unknown"}, | 456 | {0x6F, nullptr, "Unknown"}, |
| 457 | {0x70, NULL, "ControlProcessMemory"}, | 457 | {0x70, nullptr, "ControlProcessMemory"}, |
| 458 | {0x71, NULL, "MapProcessMemory"}, | 458 | {0x71, nullptr, "MapProcessMemory"}, |
| 459 | {0x72, NULL, "UnmapProcessMemory"}, | 459 | {0x72, nullptr, "UnmapProcessMemory"}, |
| 460 | {0x73, NULL, "Unknown"}, | 460 | {0x73, nullptr, "Unknown"}, |
| 461 | {0x74, NULL, "Unknown"}, | 461 | {0x74, nullptr, "Unknown"}, |
| 462 | {0x75, NULL, "Unknown"}, | 462 | {0x75, nullptr, "Unknown"}, |
| 463 | {0x76, NULL, "TerminateProcess"}, | 463 | {0x76, nullptr, "TerminateProcess"}, |
| 464 | {0x77, NULL, "Unknown"}, | 464 | {0x77, nullptr, "Unknown"}, |
| 465 | {0x78, NULL, "CreateResourceLimit"}, | 465 | {0x78, nullptr, "CreateResourceLimit"}, |
| 466 | {0x79, NULL, "Unknown"}, | 466 | {0x79, nullptr, "Unknown"}, |
| 467 | {0x7A, NULL, "Unknown"}, | 467 | {0x7A, nullptr, "Unknown"}, |
| 468 | {0x7B, NULL, "Unknown"}, | 468 | {0x7B, nullptr, "Unknown"}, |
| 469 | {0x7C, NULL, "KernelSetState"}, | 469 | {0x7C, nullptr, "KernelSetState"}, |
| 470 | {0x7D, NULL, "QueryProcessMemory"}, | 470 | {0x7D, nullptr, "QueryProcessMemory"}, |
| 471 | }; | 471 | }; |
| 472 | 472 | ||
| 473 | void Register() { | 473 | void Register() { |