diff options
author | purpasmart96 <kanzoconfigz@hotmail.com> | 2015-04-30 22:13:22 +0200 |
---|---|---|
committer | purpasmart96 <kanzoconfigz@hotmail.com> | 2015-05-12 02:11:26 +0200 |
commit | 53130fffd91b4b737305ec0a54c510221ff1db09 (patch) | |
tree | 871fcffdc15600608cc721a34ab51ad8b8398dde /src/core/hle/service/ptm/ptm_u.cpp | |
parent | Merge pull request #754 from purpasmart96/nwm_typo_fix (diff) | |
download | yuzu-53130fffd91b4b737305ec0a54c510221ff1db09.tar yuzu-53130fffd91b4b737305ec0a54c510221ff1db09.tar.gz yuzu-53130fffd91b4b737305ec0a54c510221ff1db09.tar.bz2 yuzu-53130fffd91b4b737305ec0a54c510221ff1db09.tar.lz yuzu-53130fffd91b4b737305ec0a54c510221ff1db09.tar.xz yuzu-53130fffd91b4b737305ec0a54c510221ff1db09.tar.zst yuzu-53130fffd91b4b737305ec0a54c510221ff1db09.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/ptm/ptm_u.cpp | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/src/core/hle/service/ptm/ptm_u.cpp b/src/core/hle/service/ptm/ptm_u.cpp index 9d6a5b0d7..3f5e9c7c1 100644 --- a/src/core/hle/service/ptm/ptm_u.cpp +++ b/src/core/hle/service/ptm/ptm_u.cpp @@ -11,68 +11,6 @@ namespace Service { namespace PTM { -/** - * PTM_U::GetAdapterState service function - * Outputs: - * 1 : Result of function, 0 on success, otherwise error code - * 2 : Output of function, 0 = not charging, 1 = charging. - */ -static void GetAdapterState(Service::Interface* self) { - u32* cmd_buff = Kernel::GetCommandBuffer(); - - cmd_buff[1] = RESULT_SUCCESS.raw; - cmd_buff[2] = GetAdapterState(); - - LOG_WARNING(Service_PTM, "(STUBBED) called"); -} - -/* - * PTM_User::GetShellState service function. - * Outputs: - * 1 : Result of function, 0 on success, otherwise error code - * 2 : Whether the 3DS's physical shell casing is open (1) or closed (0) - */ -static void GetShellState(Service::Interface* self) { - u32* cmd_buff = Kernel::GetCommandBuffer(); - - cmd_buff[1] = RESULT_SUCCESS.raw; - cmd_buff[2] = GetShellState(); -} - -/** - * PTM_U::GetBatteryLevel service function - * Outputs: - * 1 : Result of function, 0 on success, otherwise error code - * 2 : Battery level, 5 = completely full battery, 4 = mostly full battery, - * 3 = half full battery, 2 = low battery, 1 = critical battery. - */ -static void GetBatteryLevel(Service::Interface* self) { - u32* cmd_buff = Kernel::GetCommandBuffer(); - - cmd_buff[1] = RESULT_SUCCESS.raw; - cmd_buff[2] = static_cast<u32>(GetBatteryLevel()); - - LOG_WARNING(Service_PTM, "(STUBBED) called"); -} - -/** - * PTM_U::GetBatteryChargeState service function - * Outputs: - * 1 : Result of function, 0 on success, otherwise error code - * 2 : Output of function, 0 = not charging, 1 = charging. - */ -static void GetBatteryChargeState(Service::Interface* self) { - u32* cmd_buff = Kernel::GetCommandBuffer(); - - // TODO(purpasmart96): This function is only a stub, - // it returns a valid result without implementing full functionality. - - cmd_buff[1] = RESULT_SUCCESS.raw; - cmd_buff[2] = GetAdapterState(); - - LOG_WARNING(Service_PTM, "(STUBBED) called"); -} - const Interface::FunctionInfo FunctionTable[] = { {0x00010002, nullptr, "RegisterAlarmClient"}, {0x00020080, nullptr, "SetRtcAlarm"}, |