Просмотр исходного кода

ptm: Update ptm_sysm function table

Updated based off information from 3dbrew.
Lioncash 9 лет назад
Родитель
Сommit
ab900f8a25
3 измененных файлов с 7 добавлено и 6 удалено
  1. 1 1
      src/core/hle/service/ptm/ptm.cpp
  2. 4 3
      src/core/hle/service/ptm/ptm.h
  3. 2 2
      src/core/hle/service/ptm/ptm_sysm.cpp

+ 1 - 1
src/core/hle/service/ptm/ptm.cpp

@@ -81,7 +81,7 @@ void GetTotalStepCount(Service::Interface* self) {
     LOG_WARNING(Service_PTM, "(STUBBED) called");
     LOG_WARNING(Service_PTM, "(STUBBED) called");
 }
 }
 
 
-void IsLegacyPowerOff(Service::Interface* self) {
+void GetSoftwareClosedFlag(Service::Interface* self) {
     u32* cmd_buff = Kernel::GetCommandBuffer();
     u32* cmd_buff = Kernel::GetCommandBuffer();
 
 
     cmd_buff[1] = RESULT_SUCCESS.raw;
     cmd_buff[1] = RESULT_SUCCESS.raw;

+ 4 - 3
src/core/hle/service/ptm/ptm.h

@@ -82,12 +82,13 @@ void GetBatteryChargeState(Interface* self);
 void GetTotalStepCount(Interface* self);
 void GetTotalStepCount(Interface* self);
 
 
 /**
 /**
- * PTM::IsLegacyPowerOff service function
+ * PTM::GetSoftwareClosedFlag service function
  *  Outputs:
  *  Outputs:
  *      1: Result code, 0 on success, otherwise error code
  *      1: Result code, 0 on success, otherwise error code
- *      2: Whether the system is going through a power off
+ *      2: Whether or not the "software closed" dialog was requested by the last FIRM
+ *         and should be displayed.
  */
  */
-void IsLegacyPowerOff(Interface* self);
+void GetSoftwareClosedFlag(Interface* self);
 
 
 /**
 /**
  * PTM::CheckNew3DS service function
  * PTM::CheckNew3DS service function

+ 2 - 2
src/core/hle/service/ptm/ptm_sysm.cpp

@@ -33,8 +33,8 @@ const Interface::FunctionInfo FunctionTable[] = {
     {0x080C0080, nullptr, "SetUserTime"},
     {0x080C0080, nullptr, "SetUserTime"},
     {0x080D0000, nullptr, "InvalidateSystemTime"},
     {0x080D0000, nullptr, "InvalidateSystemTime"},
     {0x080E0140, nullptr, "NotifyPlayEvent"},
     {0x080E0140, nullptr, "NotifyPlayEvent"},
-    {0x080F0000, IsLegacyPowerOff, "IsLegacyPowerOff"},
-    {0x08100000, nullptr, "ClearLegacyPowerOff"},
+    {0x080F0000, GetSoftwareClosedFlag, "GetSoftwareClosedFlag"},
+    {0x08100000, nullptr, "ClearSoftwareClosedFlag"},
     {0x08110000, GetShellState, "GetShellState"},
     {0x08110000, GetShellState, "GetShellState"},
     {0x08120000, nullptr, "IsShutdownByBatteryEmpty"},
     {0x08120000, nullptr, "IsShutdownByBatteryEmpty"},
     {0x08130000, nullptr, "FormatSavedata"},
     {0x08130000, nullptr, "FormatSavedata"},