Filesystem services: Difference between revisions
(7 intermediate revisions by 4 users not shown) | |||
Line 554: | Line 554: | ||
| 0x086B00C2 | | 0x086B00C2 | ||
|? | |? | ||
| | |SetOtherSaveDataSecureValue | ||
| 00121004 | | 00121004 | ||
|- | |- | ||
| 0x086C00C2 | | 0x086C00C2 | ||
|? | |? | ||
| | |GetOtherSaveDataSecureValue | ||
| 00121004 | | 00121004 | ||
|- | |- | ||
Line 569: | Line 569: | ||
| 0x086E00C0 | | 0x086E00C0 | ||
|Related to Secure Value? Used in Pokemon Sun/Moon. | |Related to Secure Value? Used in Pokemon Sun/Moon. | ||
| | |SetThisSaveDataSecureValue | ||
|None? | |None? | ||
|- | |- | ||
| 0x086F0040 | | 0x086F0040 | ||
|Related to Secure Value? Used in Pokemon Sun/Moon. | |Related to Secure Value? Used in Pokemon Sun/Moon. | ||
| | |GetThisSaveDataSecureValue | ||
| 0xE | | 0xE | ||
|- | |- | ||
Line 734: | Line 734: | ||
=File and directory access= | =File and directory access= | ||
==Files== | ==Files== | ||
File session handles obtained via [[FS:OpenFile]] | File session handles obtained via [[FS:OpenFile]] and [[FS:OpenFileDirectly]] can be used to access files through a service-like interface, despite not being an actual service registered using [[SRV:RegisterService]]. To use this service-like interface, simply call the SendSyncRequest SVC with a file session handle, using the IPC buffer in thread-local storage for parameters and responses, just like you would with a proper service. | ||
{| class="wikitable" border="1" | {| class="wikitable" border="1" | ||
Line 788: | Line 788: | ||
==Directories== | ==Directories== | ||
Directory session handles obtained via [[FS:OpenDirectory]] are usable via a service-like interface, following the exact same procedure described above for file sessions. | |||
{| class="wikitable" border="1" | {| class="wikitable" border="1" | ||
|- | |- | ||
Line 1,314: | Line 1,315: | ||
| SD | | SD | ||
|- | |- | ||
| | | 3 | ||
| TWL Photo | | TWL Photo | ||
|} | |} | ||
Line 1,495: | Line 1,496: | ||
| 0x10 | | 0x10 | ||
| 0x120 | | 0x120 | ||
| The [[nand/private/movable.sed]], encrypted with AES- | | The [[nand/private/movable.sed]], encrypted with AES-CBC using the above MAC for the counter. | ||
|} | |} | ||