NCM services: Difference between revisions
No edit summary |
No edit summary |
||
Line 83: | Line 83: | ||
|} | |} | ||
== GetRootEntry == | === GetRootEntry === | ||
Returns an entry of 16 completely random-looking bytes. It is not possible to read this entry. | Returns an entry of 16 completely random-looking bytes. It is not possible to read this entry. | ||
Changes on reboot? | Changes on reboot? | ||
== GetNumberOfEntries == | === GetNumberOfEntries === | ||
Writes the total number of entries which can be read by GetEntries, to cmdreply <SFCO_offset>+0x10. | Writes the total number of entries which can be read by GetEntries, to cmdreply <SFCO_offset>+0x10. | ||
== GetEntries == | === GetEntries === | ||
Takes an output buffer, u32 offset and gets all entries starting at that offset. | Takes an output buffer, u32 offset and gets all entries starting at that offset. | ||
Returns number of entries read. | Returns number of entries read. | ||
Line 99: | Line 99: | ||
The total read entries is exactly the same as the number of "<hex>.nca" directories in the storage FS(or at least under the "registered" directory?). | The total read entries is exactly the same as the number of "<hex>.nca" directories in the storage FS(or at least under the "registered" directory?). | ||
== GetEntrySize == | === GetEntrySize === | ||
Takes a [[#NcaID]] as input. | Takes a [[#NcaID]] as input. | ||
Returns the total size readable by ReadEntryRaw. This is the same as the size-field in the [[NAX0]] "<NcaID>.nca/00" file. | Returns the total size readable by ReadEntryRaw. This is the same as the size-field in the [[NAX0]] "<NcaID>.nca/00" file. | ||
== ReadEntryRaw == | === ReadEntryRaw === | ||
Takes an output buffer, a [[#NcaID]] as input, and a u64 file offset. | Takes an output buffer, a [[#NcaID]] as input, and a u64 file offset. | ||
Line 117: | Line 117: | ||
See GetEntrySize for the total size readable with this. | See GetEntrySize for the total size readable with this. | ||
== GetNcaTitleInfo == | === GetNcaTitleInfo === | ||
Takes a [[#NcaID]] and returns the following 0x10-sized entry. | Takes a [[#NcaID]] and returns the following 0x10-sized entry. | ||