diff options
| author | bunnei <bunneidev@gmail.com> | 2015-10-27 16:07:43 -0400 |
|---|---|---|
| committer | bunnei <bunneidev@gmail.com> | 2015-10-27 16:07:43 -0400 |
| commit | 7e18bcf6e0d429d9aeb23ec85acc762023d359d4 (patch) | |
| tree | 28d97fa0c2607099444e3b1f8f7bd6d0e3d8f1dd /src/core/hle/service/ptm/ptm.cpp | |
| parent | 8c385a3fc640b66d8d082ad81889363199b3036c (diff) | |
| parent | a06a32c05d54c8941697b95ee67739a844c22814 (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.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(); |
