summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/core/hle/service/ptm/ptm.cpp2
-rw-r--r--src/core/hle/service/ptm/ptm.h7
-rw-r--r--src/core/hle/service/ptm/ptm_sysm.cpp4
3 files changed, 7 insertions, 6 deletions
diff --git a/src/core/hle/service/ptm/ptm.cpp b/src/core/hle/service/ptm/ptm.cpp
index cc859c14c..6a9f1d24d 100644
--- a/src/core/hle/service/ptm/ptm.cpp
+++ b/src/core/hle/service/ptm/ptm.cpp
@@ -81,7 +81,7 @@ void GetTotalStepCount(Service::Interface* self) {
81 LOG_WARNING(Service_PTM, "(STUBBED) called"); 81 LOG_WARNING(Service_PTM, "(STUBBED) called");
82} 82}
83 83
84void IsLegacyPowerOff(Service::Interface* self) { 84void GetSoftwareClosedFlag(Service::Interface* self) {
85 u32* cmd_buff = Kernel::GetCommandBuffer(); 85 u32* cmd_buff = Kernel::GetCommandBuffer();
86 86
87 cmd_buff[1] = RESULT_SUCCESS.raw; 87 cmd_buff[1] = RESULT_SUCCESS.raw;
diff --git a/src/core/hle/service/ptm/ptm.h b/src/core/hle/service/ptm/ptm.h
index 6e163a6f9..a1a628012 100644
--- a/src/core/hle/service/ptm/ptm.h
+++ b/src/core/hle/service/ptm/ptm.h
@@ -82,12 +82,13 @@ void GetBatteryChargeState(Interface* self);
82void GetTotalStepCount(Interface* self); 82void GetTotalStepCount(Interface* self);
83 83
84/** 84/**
85 * PTM::IsLegacyPowerOff service function 85 * PTM::GetSoftwareClosedFlag service function
86 * Outputs: 86 * Outputs:
87 * 1: Result code, 0 on success, otherwise error code 87 * 1: Result code, 0 on success, otherwise error code
88 * 2: Whether the system is going through a power off 88 * 2: Whether or not the "software closed" dialog was requested by the last FIRM
89 * and should be displayed.
89 */ 90 */
90void IsLegacyPowerOff(Interface* self); 91void GetSoftwareClosedFlag(Interface* self);
91 92
92/** 93/**
93 * PTM::CheckNew3DS service function 94 * PTM::CheckNew3DS service function
diff --git a/src/core/hle/service/ptm/ptm_sysm.cpp b/src/core/hle/service/ptm/ptm_sysm.cpp
index 693158dbf..82e118e2b 100644
--- a/src/core/hle/service/ptm/ptm_sysm.cpp
+++ b/src/core/hle/service/ptm/ptm_sysm.cpp
@@ -33,8 +33,8 @@ const Interface::FunctionInfo FunctionTable[] = {
33 {0x080C0080, nullptr, "SetUserTime"}, 33 {0x080C0080, nullptr, "SetUserTime"},
34 {0x080D0000, nullptr, "InvalidateSystemTime"}, 34 {0x080D0000, nullptr, "InvalidateSystemTime"},
35 {0x080E0140, nullptr, "NotifyPlayEvent"}, 35 {0x080E0140, nullptr, "NotifyPlayEvent"},
36 {0x080F0000, IsLegacyPowerOff, "IsLegacyPowerOff"}, 36 {0x080F0000, GetSoftwareClosedFlag, "GetSoftwareClosedFlag"},
37 {0x08100000, nullptr, "ClearLegacyPowerOff"}, 37 {0x08100000, nullptr, "ClearSoftwareClosedFlag"},
38 {0x08110000, GetShellState, "GetShellState"}, 38 {0x08110000, GetShellState, "GetShellState"},
39 {0x08120000, nullptr, "IsShutdownByBatteryEmpty"}, 39 {0x08120000, nullptr, "IsShutdownByBatteryEmpty"},
40 {0x08130000, nullptr, "FormatSavedata"}, 40 {0x08130000, nullptr, "FormatSavedata"},