summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Subv2015-02-28 19:51:13 -0500
committerGravatar Subv2015-02-28 19:51:13 -0500
commitc36778e60216fcc8220ada2e6d2204c2f2aa87f1 (patch)
tree9b4917112e568add7f5c0d7ed94b28394035be06 /src
parentMerge pull request #599 from Subv/morton (diff)
downloadyuzu-c36778e60216fcc8220ada2e6d2204c2f2aa87f1.tar.gz
yuzu-c36778e60216fcc8220ada2e6d2204c2f2aa87f1.tar.xz
yuzu-c36778e60216fcc8220ada2e6d2204c2f2aa87f1.zip
Services/PTM: Stubbed PTM_Sysm::IsLegacyPowerOff.
This allows the Home Menu to boot further
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/service/ptm_sysm.cpp14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/core/hle/service/ptm_sysm.cpp b/src/core/hle/service/ptm_sysm.cpp
index 96ef2dce0..dc4a9c569 100644
--- a/src/core/hle/service/ptm_sysm.cpp
+++ b/src/core/hle/service/ptm_sysm.cpp
@@ -12,6 +12,18 @@
12 12
13namespace PTM_SYSM { 13namespace PTM_SYSM {
14 14
15/**
16 * Returns whether the system is powering off (?)
17 * Outputs:
18 * 1: Result code, 0 on success, otherwise error code
19 * 2: Whether the system is going through a power off
20 */
21void IsLegacyPowerOff(Service::Interface* self) {
22 u32* cmd_buff = Kernel::GetCommandBuffer();
23 cmd_buff[1] = RESULT_SUCCESS.raw;
24 cmd_buff[2] = 0;
25}
26
15const Interface::FunctionInfo FunctionTable[] = { 27const Interface::FunctionInfo FunctionTable[] = {
16 {0x040100C0, nullptr, "SetRtcAlarmEx"}, 28 {0x040100C0, nullptr, "SetRtcAlarmEx"},
17 {0x04020042, nullptr, "ReplySleepQuery"}, 29 {0x04020042, nullptr, "ReplySleepQuery"},
@@ -37,7 +49,7 @@ const Interface::FunctionInfo FunctionTable[] = {
37 {0x080C0080, nullptr, "SetUserTime"}, 49 {0x080C0080, nullptr, "SetUserTime"},
38 {0x080D0000, nullptr, "InvalidateSystemTime"}, 50 {0x080D0000, nullptr, "InvalidateSystemTime"},
39 {0x080E0140, nullptr, "NotifyPlayEvent"}, 51 {0x080E0140, nullptr, "NotifyPlayEvent"},
40 {0x080F0000, nullptr, "IsLegacyPowerOff"}, 52 {0x080F0000, IsLegacyPowerOff, "IsLegacyPowerOff"},
41 {0x08100000, nullptr, "ClearLegacyPowerOff"}, 53 {0x08100000, nullptr, "ClearLegacyPowerOff"},
42 {0x08110000, nullptr, "GetShellStatus"}, 54 {0x08110000, nullptr, "GetShellStatus"},
43 {0x08120000, nullptr, "IsShutdownByBatteryEmpty"}, 55 {0x08120000, nullptr, "IsShutdownByBatteryEmpty"},