NCM services: Difference between revisions

Line 216: Line 216:
| 8 || CleanupContentMetaDatabase || Takes a [[Filesystem_services#StorageId|StorageID]], and deletes the associated savedata.
| 8 || CleanupContentMetaDatabase || Takes a [[Filesystem_services#StorageId|StorageID]], and deletes the associated savedata.
|-
|-
| 9 || [2.0.0+] OpenContentStorage2 || Takes a [[Filesystem_services#StorageId|StorageID]], and opens an IContentStorage for the StorageID to be gotten with GetIContentStorage. Note: Name is not official.
| 9 || [2.0.0+] ActivateContentStorage || Takes a [[Filesystem_services#StorageId|StorageID]], and opens an IContentStorage for the StorageID to be gotten with GetIContentStorage. Note: Name is not official.
|-
|-
| 10 || [2.0.0+] CloseContentStorage || Takes a [[Filesystem_services#StorageId|StorageID]], and closes the associated IContentStorage. Note: Name is not official.
| 10 || [2.0.0+] InactivateContentStorage || Takes a [[Filesystem_services#StorageId|StorageID]], and closes the associated IContentStorage. Note: Name is not official.
|-
|-
| 11 || [2.0.0+] OpenContentMetaDatabase2 || Takes a [[Filesystem_services#StorageId|StorageID]], and opens an IContentMetaDatabase for the StorageID to be gotten with GetIContentMetaDatabase. Note: Name is not official.
| 11 || [2.0.0+] ActivateContentMetaDatabase || Takes a [[Filesystem_services#StorageId|StorageID]], and opens an IContentMetaDatabase for the StorageID to be gotten with GetIContentMetaDatabase. Note: Name is not official.
|-
|-
| 12 || [2.0.0+] CloseContentMetaDatabase || Takes a [[Filesystem_services#StorageId|StorageID]], and closes the associated IContentMetaDatabase. Note: Name is not official.
| 12 || [2.0.0+] InactivateContentMetaDatabase || Takes a [[Filesystem_services#StorageId|StorageID]], and closes the associated IContentMetaDatabase. Note: Name is not official.
|}
|}


Line 260: Line 260:
| 13 || [[#ListContentId]] ||
| 13 || [[#ListContentId]] ||
|-
|-
| 14 || [[#GetSize]] ||  
| 14 || [[#GetSizeFromContentId]] ||  
|-
|-
| 15 || DisableForcibly || Closes/Flushes all resources for the storage, and causes all future IPC commands to the current session to return error 0xC805.
| 15 || DisableForcibly || Closes/Flushes all resources for the storage, and causes all future IPC commands to the current session to return error 0xC805.
Line 280: Line 280:
| 23 || [2.0.0+] GetTotalSpaceSize || Gets total space for the storage.
| 23 || [2.0.0+] GetTotalSpaceSize || Gets total space for the storage.
|-
|-
| 24 || [3.0.0+] FlushStorage || Flushes resources for the storage without closing it.
| 24 || [3.0.0+] FlushPlaceHolder || Flushes resources for the storage without closing it.
|-
|-
| 25 || [4.0.0+] ||  
| 25 || [4.0.0+] GetSizeFromPlaceHolderId ||  
|-
|-
| 26 || [4.0.0+] ||  
| 26 || [4.0.0+] RepairInvalidFileAttribute ||  
|}
|}


Line 303: Line 303:
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?).


==== GetSize ====
==== GetSizeFromContentId ====
Takes a [[#NcaID]] as input.
Takes a [[#NcaID]] as input.


Line 362: Line 362:
| 19 || [2.0.0+] GetRequiredApplicationVersion || Does the same thing as GetEntryUnknownRecordSize, but for AddOnContents.
| 19 || [2.0.0+] GetRequiredApplicationVersion || Does the same thing as GetEntryUnknownRecordSize, but for AddOnContents.
|-
|-
| 20 || [5.0.0+] ||
| 20 || [5.0.0+] GetContentIdByTypeAndIdOffset ||
|}
|}