NCM services: Difference between revisions

Line 462: Line 462:
     if is_present_in_database(ContentId):
     if is_present_in_database(ContentId):
         out_buf[i] = 0
         out_buf[i] = 0
=== StorageId ===
This is "nn::ncm::StorageId". Enum, sizeof() == sizeof(u8).
{| class="wikitable" border="1"
|-
! Value || Name
|-
| 0 || None
|-
| 1 || Host
|-
| 2 || GameCard
|-
| 3 || BuiltInSystem
|-
| 4 || BuiltInUser
|-
| 5 || SdCard
|-
| 6 || Any
|}
"None" and "Any" are meta storages.
nn::ncm::IsInstallableStorage returns true for BuiltInSystem, BuiltInUser, SdCard, and Any.
nn::ncm::IsUniqueStorage returns true for != None && != Any.


=== ContentId ===
=== ContentId ===