NCM services: Difference between revisions
Add full interface name (imported from SwIPC) |
Add more ContentStorage docs |
||
Line 134: | Line 134: | ||
| 1 || || Takes two 0x10-sized entries, and a u64. | | 1 || || Takes two 0x10-sized entries, and a u64. | ||
|- | |- | ||
| 2 || || Takes a 0x10-sized entry. | | 2 || DeletePlaceholderEntry || Takes a 0x10-sized entry. | ||
|- | |- | ||
| 3 || || Takes a 0x10-sized entry, returns a bool/u8. | | 3 || GetEntryType || Takes a 0x10-sized entry, returns a bool/u8. | ||
|- | |- | ||
| 4 || || Takes a | | 4 || WritePlaceholderEntry || Takes a [[#NcaID]], a u64-offset, and type-5 array. | ||
|- | |- | ||
| 5 || || Takes two 0x10-sized entries. | | 5 || MovePlaceholderToRegistered || Takes two 0x10-sized entries. | ||
|- | |- | ||
| 6 || DeleteContent? || Takes a 0x10-sized entry. | | 6 || DeleteContent? || Takes a 0x10-sized entry. | ||
Line 146: | Line 146: | ||
| 7 || IsNcaEntryValid || Takes a [[#NcaID]], returns a bool. | | 7 || IsNcaEntryValid || Takes a [[#NcaID]], returns a bool. | ||
|- | |- | ||
| 8 || | | 8 || GetPath || Takes a [[#NcaID]]. Returns a [[Filesystem_services#ContentPath|Content Path]]. | ||
|- | |- | ||
| 9 || | | 9 || GetPlaceholderPath || Takes a [[#NcaID]]. Returns a [[Filesystem_services#ContentPath|Content Path]]. | ||
|- | |- | ||
| 10 || || | | 10 || CleanPlaceholderDirectory || Deletes the Placeholder directory. | ||
|- | |- | ||
| 11 || || Takes a type-6 buffer, each entry 0x10 bytes, and returns a u32. | | 11 || || Takes a type-6 buffer, each entry 0x10 bytes, and returns a u32. | ||
Line 160: | Line 160: | ||
| 14 || [[#GetEntrySize]] || | | 14 || [[#GetEntrySize]] || | ||
|- | |- | ||
| 15 || || | | 15 || CloseStorage || Closes/Flushes all resources for the storage, and causes all future IPC commands to the current session to return error 0xC805. | ||
|- | |- | ||
| 16 || || Takes three 0x10-sized entries. | | 16 || || Takes three 0x10-sized entries. | ||
|- | |- | ||
| 17 || || Takes a | | 17 || SetPlaceholderSize || Takes a [[#NcaID]], and a u64 size | ||
|- | |- | ||
| 18 || [[#ReadEntryRaw]] || | | 18 || [[#ReadEntryRaw]] || | ||
|- | |- | ||
| 19 || || | | 19 || GetPlaceholderRightsID || Gets the Rights ID for the [[#NcaID]]'s placeholder path. | ||
|- | |- | ||
| 20 || [[# | | 20 || GetRegisteredRightsID || Gets the Rights ID for the [[#NcaID]]'s registered path | ||
|- | |- | ||
| 21 || || Takes a | | 21 || WriteRegisteredPathForDebug || Takes a [[#NcaID]], a u64 size, and a type 5 buffer. On debug units, writes the buffer to the NCA's registered path. On retail units, this just aborts. | ||
|- | |- | ||
| 22 || GetFreeSpace || | | 22 || GetFreeSpace || | ||
Line 212: | Line 212: | ||
See GetEntrySize for the total size readable with this. | See GetEntrySize for the total size readable with this. | ||
=== IContentMetaDatabase === | === IContentMetaDatabase === |