Changes

994 bytes added ,  12:58, 4 July 2018
m
Line 38: Line 38:  
|-
 
|-
 
| 0x000B00C2
 
| 0x000B00C2
| GetStepHistory
+
| [[PTM:GetStepHistory|GetStepHistory]]
 
|-
 
|-
 
| 0x000C0000
 
| 0x000C0000
Line 53: Line 53:  
|}
 
|}
   −
The above commands are available for all PTM services.
+
The above commands are available for all PTM services, except the SetSystemTime service.
    
=PlayHistory PTM Service "ptm:play" =
 
=PlayHistory PTM Service "ptm:play" =
Line 62: Line 62:  
|-
 
|-
 
| 0x08070082
 
| 0x08070082
| GetPlayHistory
+
| [[PTM:GetPlayHistory|GetPlayHistory]]
 
|-
 
|-
 
| 0x08080000
 
| 0x08080000
Line 74: Line 74:  
|}
 
|}
   −
 
+
=SystemControl PTM Service "ptm:s"=
 +
Identical to the below "ptm:sysm"
    
=SysMenu PTM Service "ptm:sysm"=
 
=SysMenu PTM Service "ptm:sysm"=
Line 101: Line 102:  
|-
 
|-
 
| 0x040700C0
 
| 0x040700C0
| ShutdownAsync
+
| [[PTM:ShutdownAsync|ShutdownAsync]]
 
|-
 
|-
 
| 0x04080000
 
| 0x04080000
Line 131: Line 132:  
|-
 
|-
 
| 0x08070082
 
| 0x08070082
| GetPlayHistory
+
| [[PTM:GetPlayHistory|GetPlayHistory]]
 
|-
 
|-
 
| 0x08080000
 
| 0x08080000
Line 155: Line 156:  
|-
 
|-
 
| 0x080F0000
 
| 0x080F0000
| IsLegacyPowerOff
+
| [[PTMSYSM:GetSoftwareClosedFlag|GetSoftwareClosedFlag]]
 
|-
 
|-
 
| 0x08100000
 
| 0x08100000
| ClearLegacyPowerOff
+
| [[PTMSYSM:ClearSoftwareClosedFlag|ClearSoftwareClosedFlag]]
 
|-
 
|-
 
| 0x08110000
 
| 0x08110000
Line 171: Line 172:  
| 0x08140000
 
| 0x08140000
 
| GetLegacyJumpProhibitedFlag
 
| GetLegacyJumpProhibitedFlag
|-
  −
| 0x0814...
  −
| unknown
   
|-  
 
|-  
| 0x0815...
+
| 0x08150040
| unknown
+
| SetPlayHistoryRecordingMode
 
|-
 
|-
| 0x0816
+
| 0x0816....
| unknown
+
| Abstraction for mcu::RTC::GetSystemClock
 
|-
 
|-
| 0x0817
+
| 0x0817....
| unknown
+
| Abstraction for mcu::RTC::SetSystemClock
 
|-
 
|-
| 0x0818
+
| 0x08180040
| unknown
+
| [[PTMSYSM:ConfigureNew3DSCPU|ConfigureNew3DSCPU]]
 
|-
 
|-
 
|}
 
|}
Line 196: Line 194:  
|-
 
|-
 
| 0x04010000
 
| 0x04010000
| unknown
+
| GetSystemTime
 
|-
 
|-
 
|}
 
|}
   −
=SystemControl PTM Service "ptm:s"=
+
=SetSystemTime PTM Service "ptm:sets"=
 +
{| class="wikitable" border="1"
 +
|-
 +
!  Command Header
 +
!  Description
 +
|-
 +
| 0x00010080
 +
| SetSystemTime
 +
|-
 +
|}
    
=PTM [[System_SaveData]]=
 
=PTM [[System_SaveData]]=
 
During system boot PTM attempts to open the PTM savedata, if this fails it will repeatedly keep trying to open the archive. When opening the archive is failing due to savedata corruption, PTM eventually(during system boot) deletes the savedata then creates it again.
 
During system boot PTM attempts to open the PTM savedata, if this fails it will repeatedly keep trying to open the archive. When opening the archive is failing due to savedata corruption, PTM eventually(during system boot) deletes the savedata then creates it again.
 +
 +
Savedata contents:
 +
* "/Pedometer.dat"
 +
* "/PlayHistory.dat" Filesize is 0xD5DE8.
 +
 +
==PlayHistory.dat==
 +
{| class="wikitable" border="1"
 +
|-
 +
!  Offset
 +
!  Size
 +
!  Description
 +
|-
 +
| 0x0
 +
| 0x4
 +
| Start entry index.
 +
|-
 +
| 0x4
 +
| 0x4
 +
| Total PlayHistory entries.
 +
|-
 +
| 0x8
 +
| 0xD5DE0
 +
| 0x11D28 PlayHistory entries, 0xC-bytes each.
 +
|}
 +
 +
===PlayHistory entry===
 +
{| class="wikitable" border="1"
 +
|-
 +
!  Offset
 +
!  Size
 +
!  Description
 +
|-
 +
| 0x0
 +
| 0x8
 +
| u64 programID
 +
|-
 +
| 0x8
 +
| 0x4
 +
| u32, probably timestamp.
 +
|}
115

edits