FS:GetThisSaveDataSecureValue: Difference between revisions

From 3dbrew
Jump to navigation Jump to search
TimmSkiller (talk | contribs)
Created page with "=Request= {{IPC/Request}} {{IPC/RequestHeader|0x86F|1|0}} {{IPC/RequestEntry|u32, Secure Value Slot}} {{IPC/RequestEnd}} =Response= {{..."
 
TimmSkiller (talk | contribs)
No edit summary
 
Line 18: Line 18:
=Description=
=Description=
Gets the secure value of the title corresponding to the current session.
Gets the secure value of the title corresponding to the current session.
If the caller process is on a game card, the secure value is read from the [[DISA_and_DIFF#DISA_header|DISA save image]]'s header.
Otherwise, the secure value is read from the [[Filesystem_services#Anti_Savegame_Restore|Anti Savegame Restore]] save data.

Latest revision as of 13:16, 1 July 2025

Request

Index Word Description
0
Header 0x86F0040 Cmd 0x86F Param 1 Xlat 0
1 u32, Secure Value Slot

Response

Index Word Description
0
Header 0x86F0140 Cmd 0x86F Param 5 Xlat 0
1 Result code
2 bool, whether or not the secure value was found
3 bool, whether or not the title is from a gamecart (regardless of whether or not the secure value was found)
4-5 u64, Secure value

Description

Gets the secure value of the title corresponding to the current session.

If the caller process is on a game card, the secure value is read from the DISA save image's header. Otherwise, the secure value is read from the Anti Savegame Restore save data.