summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorGravatar Filiph Sandström2015-10-23 23:58:54 +0200
committerGravatar Filiph Sandström2015-10-23 23:58:54 +0200
commit0c84d59a278f69df47e4c0b35a1bac1a7b947904 (patch)
tree5a005a0b746b25182f3ec9978f2fcf6ef327ff6d /src/core
parentAdd GetTotalStepCount Stub (diff)
downloadyuzu-0c84d59a278f69df47e4c0b35a1bac1a7b947904.tar.gz
yuzu-0c84d59a278f69df47e4c0b35a1bac1a7b947904.tar.xz
yuzu-0c84d59a278f69df47e4c0b35a1bac1a7b947904.zip
Fix wrong branch
Diffstat (limited to 'src/core')
-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) {
68 LOG_WARNING(Service_PTM, "(STUBBED) called"); 68 LOG_WARNING(Service_PTM, "(STUBBED) called");
69} 69}
70 70
71void GetTotalStepCount(Service::Interface* self) {
72 u32* cmd_buff = Kernel::GetCommandBuffer();
73
74 // TODO: This function is only a stub,
75 // it returns 0 as the total step count
76
77 cmd_buff[1] = RESULT_SUCCESS.raw;
78 cmd_buff[2] = 0;
79
80 LOG_WARNING(Service_PTM, "(STUBBED) called");
81}
82
71void IsLegacyPowerOff(Service::Interface* self) { 83void IsLegacyPowerOff(Service::Interface* self) {
72 u32* cmd_buff = Kernel::GetCommandBuffer(); 84 u32* cmd_buff = Kernel::GetCommandBuffer();
73 85