aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/service/ptm/ptm.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2015-10-27 16:07:43 -0400
committerbunnei <bunneidev@gmail.com>2015-10-27 16:07:43 -0400
commit7e18bcf6e0d429d9aeb23ec85acc762023d359d4 (patch)
tree28d97fa0c2607099444e3b1f8f7bd6d0e3d8f1dd /src/core/hle/service/ptm/ptm.cpp
parent8c385a3fc640b66d8d082ad81889363199b3036c (diff)
parenta06a32c05d54c8941697b95ee67739a844c22814 (diff)
Merge pull request #1217 from filfat/master
Add GetTotalStepCount Stub
Diffstat (limited to 'src/core/hle/service/ptm/ptm.cpp')
-rw-r--r--src/core/hle/service/ptm/ptm.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/core/hle/service/ptm/ptm.cpp b/src/core/hle/service/ptm/ptm.cpp
index 2c7d49c9f..22c1093ff 100644
--- a/src/core/hle/service/ptm/ptm.cpp
+++ b/src/core/hle/service/ptm/ptm.cpp
@@ -68,6 +68,18 @@ void GetBatteryChargeState(Service::Interface* self) {
LOG_WARNING(Service_PTM, "(STUBBED) called");
}
+void GetTotalStepCount(Service::Interface* self) {
+ u32* cmd_buff = Kernel::GetCommandBuffer();
+
+ // TODO: This function is only a stub,
+ // it returns 0 as the total step count
+
+ cmd_buff[1] = RESULT_SUCCESS.raw;
+ cmd_buff[2] = 0;
+
+ LOG_WARNING(Service_PTM, "(STUBBED) called");
+}
+
void IsLegacyPowerOff(Service::Interface* self) {
u32* cmd_buff = Kernel::GetCommandBuffer();