ptm_sysm.cpp 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. // Copyright 2015 Citra Emulator Project
  2. // Licensed under GPLv2 or any later version
  3. // Refer to the license.txt file included.
  4. #include "common/log.h"
  5. #include "common/make_unique.h"
  6. #include "core/file_sys/archive_extsavedata.h"
  7. #include "core/hle/hle.h"
  8. #include "core/hle/service/ptm_sysm.h"
  9. ////////////////////////////////////////////////////////////////////////////////////////////////////
  10. // Namespace PTM_SYSM
  11. namespace PTM_SYSM {
  12. const Interface::FunctionInfo FunctionTable[] = {
  13. {0x040100C0, nullptr, "SetRtcAlarmEx"},
  14. {0x04020042, nullptr, "ReplySleepQuery"},
  15. {0x04030042, nullptr, "NotifySleepPreparationComplete"},
  16. {0x04040102, nullptr, "SetWakeupTrigger"},
  17. {0x04050000, nullptr, "GetAwakeReason"},
  18. {0x04060000, nullptr, "RequestSleep"},
  19. {0x040700C0, nullptr, "ShutdownAsync"},
  20. {0x04080000, nullptr, "Awake"},
  21. {0x04090080, nullptr, "RebootAsync"},
  22. {0x040A0000, nullptr, "CheckNew3DS"},
  23. {0x08010640, nullptr, "SetInfoLEDPattern"},
  24. {0x08020040, nullptr, "SetInfoLEDPatternHeader"},
  25. {0x08030000, nullptr, "GetInfoLEDStatus"},
  26. {0x08040040, nullptr, "SetBatteryEmptyLEDPattern"},
  27. {0x08050000, nullptr, "ClearStepHistory"},
  28. {0x080600C2, nullptr, "SetStepHistory"},
  29. {0x08070082, nullptr, "GetPlayHistory"},
  30. {0x08080000, nullptr, "GetPlayHistoryStart"},
  31. {0x08090000, nullptr, "GetPlayHistoryLength"},
  32. {0x080A0000, nullptr, "ClearPlayHistory"},
  33. {0x080B0080, nullptr, "CalcPlayHistoryStart"},
  34. {0x080C0080, nullptr, "SetUserTime"},
  35. {0x080D0000, nullptr, "InvalidateSystemTime"},
  36. {0x080E0140, nullptr, "NotifyPlayEvent"},
  37. {0x080F0000, nullptr, "IsLegacyPowerOff"},
  38. {0x08100000, nullptr, "ClearLegacyPowerOff"},
  39. {0x08110000, nullptr, "GetShellStatus"},
  40. {0x08120000, nullptr, "IsShutdownByBatteryEmpty"},
  41. {0x08130000, nullptr, "FormatSavedata"},
  42. {0x08140000, nullptr, "GetLegacyJumpProhibitedFlag"}
  43. };
  44. ////////////////////////////////////////////////////////////////////////////////////////////////////
  45. // Interface class
  46. Interface::Interface() {
  47. Register(FunctionTable, ARRAY_SIZE(FunctionTable));
  48. }
  49. } // namespace