From cd778cf9915689f14fbf7bd4499edd186993bc9e Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 8 Dec 2016 05:20:12 -0500 Subject: service: Drop '_Interface' in ptm service class names Inheriting from Service::Interface makes this obvious. --- src/core/hle/service/ptm/ptm_sysm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/hle/service/ptm/ptm_sysm.cpp') diff --git a/src/core/hle/service/ptm/ptm_sysm.cpp b/src/core/hle/service/ptm/ptm_sysm.cpp index 82e118e2b..f6d8c0c82 100644 --- a/src/core/hle/service/ptm/ptm_sysm.cpp +++ b/src/core/hle/service/ptm/ptm_sysm.cpp @@ -42,7 +42,7 @@ const Interface::FunctionInfo FunctionTable[] = { {0x08180040, nullptr, "ConfigureNew3DSCPU"}, }; -PTM_Sysm_Interface::PTM_Sysm_Interface() { +PTM_Sysm::PTM_Sysm() { Register(FunctionTable); } -- cgit v1.2.3 From 56656b75abf0d5c00b53fb091f17b2aa0d3f1c7c Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 8 Dec 2016 05:27:36 -0500 Subject: service: Add common ptm:u commands to other ptm services 3dbrew indicates that all services have access to these commands except for ptm:sets. --- src/core/hle/service/ptm/ptm_sysm.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'src/core/hle/service/ptm/ptm_sysm.cpp') diff --git a/src/core/hle/service/ptm/ptm_sysm.cpp b/src/core/hle/service/ptm/ptm_sysm.cpp index f6d8c0c82..a5db93e44 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"}, -- cgit v1.2.3 From 007815647cfaed90d61e12fce50de0df98e2a8ba Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 8 Dec 2016 05:32:38 -0500 Subject: service: Add the ptm:s service 3dbrew documents this as being the exact same as ptm:sysm --- src/core/hle/service/ptm/ptm_sysm.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/core/hle/service/ptm/ptm_sysm.cpp') diff --git a/src/core/hle/service/ptm/ptm_sysm.cpp b/src/core/hle/service/ptm/ptm_sysm.cpp index a5db93e44..f95dfdbb1 100644 --- a/src/core/hle/service/ptm/ptm_sysm.cpp +++ b/src/core/hle/service/ptm/ptm_sysm.cpp @@ -59,6 +59,10 @@ const Interface::FunctionInfo FunctionTable[] = { {0x08180040, nullptr, "ConfigureNew3DSCPU"}, }; +PTM_S::PTM_S() { + Register(FunctionTable); +} + PTM_Sysm::PTM_Sysm() { Register(FunctionTable); } -- cgit v1.2.3