NCM services: Difference between revisions

No edit summary
Line 60: Line 60:
| 13 || [[#GetEntries]] ||
| 13 || [[#GetEntries]] ||
|-
|-
| 14 || GetEntrySize ||
| 14 || [[#GetEntrySize]] ||
|-
|-
| 15 || || Void.
| 15 || || Void.
Line 96: Line 96:


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 ==
Takes a [[#ncaID]] as input.
Returns the total size readable by ReadEntryRaw. This is the same as the size field from offset 0x28 in the NAX0 header in the "<ncaID>.nca/00" file. This matches <filesize of that file>-0x4000.


== ReadEntryRaw ==
== ReadEntryRaw ==
Line 102: Line 107:
Returns encrypted looking data. Doesn't match the encrypted raw data in the "<ncaID>.nca/00" file.
Returns encrypted looking data. Doesn't match the encrypted raw data in the "<ncaID>.nca/00" file.


The end-offset for readable data is the same as the size field from offset 0x28 in the NAX0 header in the "<ncaID>.nca/00" file. This matches <filesize of that file>-0x4000.
See GetEntrySize for the total size readable with this.


== GetNcaTitleInfo ==
== GetNcaTitleInfo ==