summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/ptm/ptm_sysm.cpp
diff options
context:
space:
mode:
authorYuri Kunde Schlesner <yuriks@yuriks.net>2016-12-09 04:34:32 +0100
committerGitHub <noreply@github.com>2016-12-09 04:34:32 +0100
commit18bf4acb9bc5b1ee79f757ea604efd8f10eac7cf (patch)
treee230f60ef4ae620bce849da9f72ee7e397c0de1a /src/core/hle/service/ptm/ptm_sysm.cpp
parentMerge pull request #2280 from Subv/citrace_size (diff)
parentservice: Add the ptm:s service (diff)
downloadyuzu-18bf4acb9bc5b1ee79f757ea604efd8f10eac7cf.tar
yuzu-18bf4acb9bc5b1ee79f757ea604efd8f10eac7cf.tar.gz
yuzu-18bf4acb9bc5b1ee79f757ea604efd8f10eac7cf.tar.bz2
yuzu-18bf4acb9bc5b1ee79f757ea604efd8f10eac7cf.tar.lz
yuzu-18bf4acb9bc5b1ee79f757ea604efd8f10eac7cf.tar.xz
yuzu-18bf4acb9bc5b1ee79f757ea604efd8f10eac7cf.tar.zst
yuzu-18bf4acb9bc5b1ee79f757ea604efd8f10eac7cf.zip
Diffstat (limited to 'src/core/hle/service/ptm/ptm_sysm.cpp')
-rw-r--r--src/core/hle/service/ptm/ptm_sysm.cpp23
1 files changed, 22 insertions, 1 deletions
diff --git a/src/core/hle/service/ptm/ptm_sysm.cpp b/src/core/hle/service/ptm/ptm_sysm.cpp
index 82e118e2b..f95dfdbb1 100644
--- a/src/core/hle/service/ptm/ptm_sysm.cpp
+++ b/src/core/hle/service/ptm/ptm_sysm.cpp
@@ -9,6 +9,23 @@ 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:sysm
{0x040100C0, nullptr, "SetRtcAlarmEx"},
{0x04020042, nullptr, "ReplySleepQuery"},
{0x04030042, nullptr, "NotifySleepPreparationComplete"},
@@ -42,7 +59,11 @@ const Interface::FunctionInfo FunctionTable[] = {
{0x08180040, nullptr, "ConfigureNew3DSCPU"},
};
-PTM_Sysm_Interface::PTM_Sysm_Interface() {
+PTM_S::PTM_S() {
+ Register(FunctionTable);
+}
+
+PTM_Sysm::PTM_Sysm() {
Register(FunctionTable);
}