summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFiliph Sandström <filiph.sandstrom@filfatstudios.com>2015-10-23 23:58:54 +0200
committerFiliph Sandström <filiph.sandstrom@filfatstudios.com>2015-10-23 23:58:54 +0200
commit0c84d59a278f69df47e4c0b35a1bac1a7b947904 (patch)
tree5a005a0b746b25182f3ec9978f2fcf6ef327ff6d /src
parentAdd GetTotalStepCount Stub (diff)
downloadyuzu-0c84d59a278f69df47e4c0b35a1bac1a7b947904.tar
yuzu-0c84d59a278f69df47e4c0b35a1bac1a7b947904.tar.gz
yuzu-0c84d59a278f69df47e4c0b35a1bac1a7b947904.tar.bz2
yuzu-0c84d59a278f69df47e4c0b35a1bac1a7b947904.tar.lz
yuzu-0c84d59a278f69df47e4c0b35a1bac1a7b947904.tar.xz
yuzu-0c84d59a278f69df47e4c0b35a1bac1a7b947904.tar.zst
yuzu-0c84d59a278f69df47e4c0b35a1bac1a7b947904.zip
Diffstat (limited to 'src')
-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();