Filesystem services: Difference between revisions

No edit summary
Shchmue (talk | contribs)
SetSdCardEncryptionSeed: info about private file value at offset 0x20
Line 1,118: Line 1,118:
Takes in the 0x10 byte SD card encryption seed, and loads it into FS-module state.
Takes in the 0x10 byte SD card encryption seed, and loads it into FS-module state.


[[NS_Services|NS]]-module reads the 0x10 bytes from SdCard:/Nintendo/Contents/private, and compares them to the first 0x10 bytes of the ns_appman:/private (in [[Flash_Filesystem#System_Savegames|system savedata]] 0x8000000000000043). If they match, NS calls this command using bytes 0x10-0x20 from ns_appman:/private. The rest of this file (0x1F0 bytes total) is (usually/always?) all-zero (however in some cases the byte at offset 0x20 is value 0x1).
[[NS_Services|NS]]-module reads the 0x10 bytes from SdCard:/Nintendo/Contents/private, and compares them to the first 0x10 bytes of the ns_appman:/private (in [[Flash_Filesystem#System_Savegames|system savedata]] 0x8000000000000043). If they match, NS calls this command using bytes 0x10-0x20 from ns_appman:/private. The rest of this file (0x1F0 bytes total) is all-zero except for the byte at offset 0x20. This byte is set to 1 by NS if the SD card has been mounted successfully and is subsequently passed to SetSdCardAccessibility.


== OpenAccessFailureDetectionEventNotifier ==
== OpenAccessFailureDetectionEventNotifier ==