summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/ptm_sysm.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2015-01-13 23:39:33 +0100
committerbunnei <bunneidev@gmail.com>2015-01-13 23:39:33 +0100
commit7bbd027660a77f6f23bb84d4e5789e902ba69f6e (patch)
treed3f8ce6365cf5be67b9d3c4a8b4ba77f58e1e4fc /src/core/hle/service/ptm_sysm.cpp
parentMerge pull request #477 from lioncash/vfp (diff)
parentServices: Added some missing services. (diff)
downloadyuzu-7bbd027660a77f6f23bb84d4e5789e902ba69f6e.tar
yuzu-7bbd027660a77f6f23bb84d4e5789e902ba69f6e.tar.gz
yuzu-7bbd027660a77f6f23bb84d4e5789e902ba69f6e.tar.bz2
yuzu-7bbd027660a77f6f23bb84d4e5789e902ba69f6e.tar.lz
yuzu-7bbd027660a77f6f23bb84d4e5789e902ba69f6e.tar.xz
yuzu-7bbd027660a77f6f23bb84d4e5789e902ba69f6e.tar.zst
yuzu-7bbd027660a77f6f23bb84d4e5789e902ba69f6e.zip
Diffstat (limited to 'src/core/hle/service/ptm_sysm.cpp')
-rw-r--r--src/core/hle/service/ptm_sysm.cpp56
1 files changed, 56 insertions, 0 deletions
diff --git a/src/core/hle/service/ptm_sysm.cpp b/src/core/hle/service/ptm_sysm.cpp
new file mode 100644
index 000000000..4b5f86a47
--- /dev/null
+++ b/src/core/hle/service/ptm_sysm.cpp
@@ -0,0 +1,56 @@
+// Copyright 2015 Citra Emulator Project
+// Licensed under GPLv2 or any later version
+// Refer to the license.txt file included.
+
+#include "common/log.h"
+#include "common/make_unique.h"
+#include "core/file_sys/archive_extsavedata.h"
+#include "core/hle/hle.h"
+#include "core/hle/service/ptm_sysm.h"
+
+////////////////////////////////////////////////////////////////////////////////////////////////////
+// Namespace PTM_SYSM
+
+namespace PTM_SYSM {
+
+const Interface::FunctionInfo FunctionTable[] = {
+ {0x040100C0, nullptr, "SetRtcAlarmEx"},
+ {0x04020042, nullptr, "ReplySleepQuery"},
+ {0x04030042, nullptr, "NotifySleepPreparationComplete"},
+ {0x04040102, nullptr, "SetWakeupTrigger"},
+ {0x04050000, nullptr, "GetAwakeReason"},
+ {0x04060000, nullptr, "RequestSleep"},
+ {0x040700C0, nullptr, "ShutdownAsync"},
+ {0x04080000, nullptr, "Awake"},
+ {0x04090080, nullptr, "RebootAsync"},
+ {0x040A0000, nullptr, "CheckNew3DS"},
+ {0x08010640, nullptr, "SetInfoLEDPattern"},
+ {0x08020040, nullptr, "SetInfoLEDPatternHeader"},
+ {0x08030000, nullptr, "GetInfoLEDStatus"},
+ {0x08040040, nullptr, "SetBatteryEmptyLEDPattern"},
+ {0x08050000, nullptr, "ClearStepHistory"},
+ {0x080600C2, nullptr, "SetStepHistory"},
+ {0x08070082, nullptr, "GetPlayHistory"},
+ {0x08080000, nullptr, "GetPlayHistoryStart"},
+ {0x08090000, nullptr, "GetPlayHistoryLength"},
+ {0x080A0000, nullptr, "ClearPlayHistory"},
+ {0x080B0080, nullptr, "CalcPlayHistoryStart"},
+ {0x080C0080, nullptr, "SetUserTime"},
+ {0x080D0000, nullptr, "InvalidateSystemTime"},
+ {0x080E0140, nullptr, "NotifyPlayEvent"},
+ {0x080F0000, nullptr, "IsLegacyPowerOff"},
+ {0x08100000, nullptr, "ClearLegacyPowerOff"},
+ {0x08110000, nullptr, "GetShellStatus"},
+ {0x08120000, nullptr, "IsShutdownByBatteryEmpty"},
+ {0x08130000, nullptr, "FormatSavedata"},
+ {0x08140000, nullptr, "GetLegacyJumpProhibitedFlag"}
+};
+
+////////////////////////////////////////////////////////////////////////////////////////////////////
+// Interface class
+
+Interface::Interface() {
+ Register(FunctionTable, ARRAY_SIZE(FunctionTable));
+}
+
+} // namespace