diff options
| author | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2016-12-08 19:34:32 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-12-08 19:34:32 -0800 |
| commit | 18bf4acb9bc5b1ee79f757ea604efd8f10eac7cf (patch) | |
| tree | e230f60ef4ae620bce849da9f72ee7e397c0de1a /src/core/hle/service/ptm/ptm_gets.cpp | |
| parent | 998390ac1a5d867d5441a921956d16f22d27a137 (diff) | |
| parent | 007815647cfaed90d61e12fce50de0df98e2a8ba (diff) | |
Merge pull request #2287 from lioncash/svc
service: Minor PTM changes
Diffstat (limited to 'src/core/hle/service/ptm/ptm_gets.cpp')
| -rw-r--r-- | src/core/hle/service/ptm/ptm_gets.cpp | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/src/core/hle/service/ptm/ptm_gets.cpp b/src/core/hle/service/ptm/ptm_gets.cpp new file mode 100644 index 000000000..b23e508d6 --- /dev/null +++ b/src/core/hle/service/ptm/ptm_gets.cpp @@ -0,0 +1,37 @@ +// Copyright 2016 Citra Emulator Project +// Licensed under GPLv2 or any later version +// Refer to the license.txt file included. + +#include "core/hle/service/ptm/ptm.h" +#include "core/hle/service/ptm/ptm_gets.h" + +namespace Service { +namespace PTM { + +const Interface::FunctionInfo FunctionTable[] = { + // ptm:u common commands + {0x00010002, nullptr, "RegisterAlarmClient"}, + {0x00020080, nullptr, "SetRtcAlarm"}, + {0x00030000, nullptr, "GetRtcAlarm"}, + {0x00040000, nullptr, "CancelRtcAlarm"}, + {0x00050000, GetAdapterState, "GetAdapterState"}, + {0x00060000, GetShellState, "GetShellState"}, + {0x00070000, GetBatteryLevel, "GetBatteryLevel"}, + {0x00080000, GetBatteryChargeState, "GetBatteryChargeState"}, + {0x00090000, nullptr, "GetPedometerState"}, + {0x000A0042, nullptr, "GetStepHistoryEntry"}, + {0x000B00C2, nullptr, "GetStepHistory"}, + {0x000C0000, GetTotalStepCount, "GetTotalStepCount"}, + {0x000D0040, nullptr, "SetPedometerRecordingMode"}, + {0x000E0000, nullptr, "GetPedometerRecordingMode"}, + {0x000F0084, nullptr, "GetStepHistoryAll"}, + // ptm:gets + {0x04010000, nullptr, "GetSystemTime"}, +}; + +PTM_Gets::PTM_Gets() { + Register(FunctionTable); +} + +} // namespace PTM +} // namespace Service |
