diff options
author | Filiph Sandström <filiph.sandstrom@filfatstudios.com> | 2015-10-23 23:58:54 +0200 |
---|---|---|
committer | Filiph Sandström <filiph.sandstrom@filfatstudios.com> | 2015-10-23 23:58:54 +0200 |
commit | 0c84d59a278f69df47e4c0b35a1bac1a7b947904 (patch) | |
tree | 5a005a0b746b25182f3ec9978f2fcf6ef327ff6d /src | |
parent | Add GetTotalStepCount Stub (diff) | |
download | yuzu-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.cpp | 12 |
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(); |