This is "nn::aocsrv::detail::IAddOnContentManager".
This is "nn::aocsrv::detail::IAddOnContentManager".
+
+
This is only available when [[Process_Manager_services|pm:bm]] GetBootMode returns output 0 (Normal).
{| class="wikitable" border="1"
{| class="wikitable" border="1"
Line 3,684:
Line 3,686:
= Uid =
= Uid =
This is "nn::account::Uid". This is a 0x10-byte struct. This contains 2 u64s for the UserId.
This is "nn::account::Uid". This is a 0x10-byte struct. This contains 2 u64s for the UserId.
+
+
= Notes =
+
[[Process_Manager_services|pm:bm]] GetBootMode is used to determine whether aoc:u is available (see above).
+
+
The output of GetBootMode is also written into state. This same func later enters a code block when BootMode is Maintenance/SafeMode: various [[NCM_services|ncm]] cmds are used with input StorageId=BuiltInUser (VerifyContentMetaDatabase, VerifyContentStorage, ActivateContentMetaDatabase, ActivateContentStorage, InactivateContentMetaDatabase, InactivateContentStorage) and state fields are written. Then if the BootMode is Maintenance the savedata for [[Flash_Filesystem|ns_rightsid]] (0x800000000000004A) is deleted. Then 0 is returned.
+
+
In the above block, InactivateContentMetaDatabase/InactivateContentStorage are only used if using ActivateContentMetaDatabase/ActivateContentStorage failed (error is only checked after using both cmds). If any of the ncm cmds prior to this fail, it will skip using the rest of the ncm cmds.