NCM services: Difference between revisions
add some official symbols |
|||
Line 112: | Line 112: | ||
| 5 || GetIContentMetaDatabase || Takes a [[Filesystem_services#StorageId|StorageID]], (2.0.0+) Only returns a storage if one has previously been opened globally via OpenIContentStorage. | | 5 || GetIContentMetaDatabase || Takes a [[Filesystem_services#StorageId|StorageID]], (2.0.0+) Only returns a storage if one has previously been opened globally via OpenIContentStorage. | ||
|- | |- | ||
| ([[1.0.0]]) 6 || | | ([[1.0.0]]) 6 || CloseContentStorageForcibly || Takes a [[Filesystem_services#StorageId|StorageID]]. Calls IContentStorage->CloseAndFlushStorage(). | ||
|- | |- | ||
| ([[1.0.0]]) 7 || | | ([[1.0.0]]) 7 || CloseContentMetaDatabaseForcibly || Takes a [[Filesystem_services#StorageId|StorageID]]. Calls IContentMetaDatabase->CloseMetaDatabase(). | ||
|- | |- | ||
| 8 || DeleteSaveDataForMediaId || Takes a [[Filesystem_services#StorageId|StorageID]], and deletes the associated savedata. | | 8 || DeleteSaveDataForMediaId || Takes a [[Filesystem_services#StorageId|StorageID]], and deletes the associated savedata. | ||
Line 135: | Line 135: | ||
! Cmd || Name || Notes | ! Cmd || Name || Notes | ||
|- | |- | ||
| 0 || [[# | | 0 || [[#GeneratePlaceHolderId]] || Returns a random UUID for the Content Storage. | ||
|- | |- | ||
| 1 || CreatePlaceholderEntryAndRegisteredDirectoryEntry || Takes two [[#NcaID]]s, and a u64 filesize. | | 1 || CreatePlaceholderEntryAndRegisteredDirectoryEntry || Takes two [[#NcaID]]s, and a u64 filesize. | ||
Line 151: | Line 151: | ||
| 7 || DoesRegisteredEntryExist || Takes a [[#NcaID]]. | | 7 || DoesRegisteredEntryExist || Takes a [[#NcaID]]. | ||
|- | |- | ||
| 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 || CleanPlaceholderDirectory || Deletes and re-creates the Placeholder directory. | | 10 || CleanPlaceholderDirectory || Deletes and re-creates the Placeholder directory. | ||
Line 186: | Line 186: | ||
|} | |} | ||
==== | ==== GeneratePlaceHolderId ==== | ||
Calls | Generates a random [[#NcaID]] for use as a placeholder. | ||
Calls nn::util::GenerateUuid(), which internally calls nn::os::GenerateRandomBytes(16); | |||
==== GetNumberOfRegisteredEntries ==== | ==== GetNumberOfRegisteredEntries ==== |