Parcourir la source

Fix wrong branch

Filiph Sandström il y a 10 ans
Parent
commit
0c84d59a27
1 fichiers modifiés avec 12 ajouts et 0 suppressions
  1. 12 0
      src/core/hle/service/ptm/ptm.cpp

+ 12 - 0
src/core/hle/service/ptm/ptm.cpp

@@ -68,6 +68,18 @@ void GetBatteryChargeState(Service::Interface* self) {
     LOG_WARNING(Service_PTM, "(STUBBED) called");
     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) {
 void IsLegacyPowerOff(Service::Interface* self) {
     u32* cmd_buff = Kernel::GetCommandBuffer();
     u32* cmd_buff = Kernel::GetCommandBuffer();