ptm_gets.cpp 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. // Copyright 2016 Citra Emulator Project
  2. // Licensed under GPLv2 or any later version
  3. // Refer to the license.txt file included.
  4. #include "core/hle/service/ptm/ptm.h"
  5. #include "core/hle/service/ptm/ptm_gets.h"
  6. namespace Service {
  7. namespace PTM {
  8. const Interface::FunctionInfo FunctionTable[] = {
  9. // ptm:u common commands
  10. {0x00010002, nullptr, "RegisterAlarmClient"},
  11. {0x00020080, nullptr, "SetRtcAlarm"},
  12. {0x00030000, nullptr, "GetRtcAlarm"},
  13. {0x00040000, nullptr, "CancelRtcAlarm"},
  14. {0x00050000, GetAdapterState, "GetAdapterState"},
  15. {0x00060000, GetShellState, "GetShellState"},
  16. {0x00070000, GetBatteryLevel, "GetBatteryLevel"},
  17. {0x00080000, GetBatteryChargeState, "GetBatteryChargeState"},
  18. {0x00090000, nullptr, "GetPedometerState"},
  19. {0x000A0042, nullptr, "GetStepHistoryEntry"},
  20. {0x000B00C2, nullptr, "GetStepHistory"},
  21. {0x000C0000, GetTotalStepCount, "GetTotalStepCount"},
  22. {0x000D0040, nullptr, "SetPedometerRecordingMode"},
  23. {0x000E0000, nullptr, "GetPedometerRecordingMode"},
  24. {0x000F0084, nullptr, "GetStepHistoryAll"},
  25. // ptm:gets
  26. {0x04010000, nullptr, "GetSystemTime"},
  27. };
  28. PTM_Gets::PTM_Gets() {
  29. Register(FunctionTable);
  30. }
  31. } // namespace PTM
  32. } // namespace Service