diff options
| author | Lioncash <mathew1800@gmail.com> | 2016-12-08 05:27:36 -0500 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2016-12-08 06:13:10 -0500 |
| commit | 56656b75abf0d5c00b53fb091f17b2aa0d3f1c7c (patch) | |
| tree | 1a24b668ca050518df82811558839edbd23675c0 /src/core/hle/service/ptm/ptm_gets.cpp | |
| parent | cd778cf9915689f14fbf7bd4499edd186993bc9e (diff) | |
service: Add common ptm:u commands to other ptm services
3dbrew indicates that all services have access to these commands
except for ptm:sets.
Diffstat (limited to 'src/core/hle/service/ptm/ptm_gets.cpp')
| -rw-r--r-- | src/core/hle/service/ptm/ptm_gets.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/core/hle/service/ptm/ptm_gets.cpp b/src/core/hle/service/ptm/ptm_gets.cpp index adf11da47..b23e508d6 100644 --- a/src/core/hle/service/ptm/ptm_gets.cpp +++ b/src/core/hle/service/ptm/ptm_gets.cpp @@ -2,12 +2,30 @@ // Licensed under GPLv2 or any later version // Refer to the license.txt file included. +#include "core/hle/service/ptm/ptm.h" #include "core/hle/service/ptm/ptm_gets.h" namespace Service { namespace PTM { const Interface::FunctionInfo FunctionTable[] = { + // ptm:u common commands + {0x00010002, nullptr, "RegisterAlarmClient"}, + {0x00020080, nullptr, "SetRtcAlarm"}, + {0x00030000, nullptr, "GetRtcAlarm"}, + {0x00040000, nullptr, "CancelRtcAlarm"}, + {0x00050000, GetAdapterState, "GetAdapterState"}, + {0x00060000, GetShellState, "GetShellState"}, + {0x00070000, GetBatteryLevel, "GetBatteryLevel"}, + {0x00080000, GetBatteryChargeState, "GetBatteryChargeState"}, + {0x00090000, nullptr, "GetPedometerState"}, + {0x000A0042, nullptr, "GetStepHistoryEntry"}, + {0x000B00C2, nullptr, "GetStepHistory"}, + {0x000C0000, GetTotalStepCount, "GetTotalStepCount"}, + {0x000D0040, nullptr, "SetPedometerRecordingMode"}, + {0x000E0000, nullptr, "GetPedometerRecordingMode"}, + {0x000F0084, nullptr, "GetStepHistoryAll"}, + // ptm:gets {0x04010000, nullptr, "GetSystemTime"}, }; |
