AMPXI:DoCleanup: Difference between revisions

From 3dbrew
Jump to navigation Jump to search
TimmSkiller (talk | contribs)
No edit summary
 
Line 26: Line 26:


=Description=
=Description=
Unknown. This is used by [[AM:DoCleanup]].
Used by [[AM:DoCleanup]].
 
This command checks the import.db on the specified media. All titles in the import.db that are not marked as pending (i.e. fully installed but not transferred to title.db) are deleted using the same internal code [[AMPXI:DeleteTitle]] uses.
 
For NAND, in addition to the above, the first thing this command does is recursively removing all directories under <code>nand:/data</code> that don't match the system ID0 (that is, all directories that are not <code>nand:/data/<ID0></code>. This deletion step, however, is not performed if a file exists at <code>nand:/data/disabled</code>.

Latest revision as of 14:15, 7 June 2025

Request

Index Word Description
0 Header code [0x00400040]
1 MediaType

Response

Index Word Description
0 Header code [0x00400040]
1 Result code

Description

Used by AM:DoCleanup.

This command checks the import.db on the specified media. All titles in the import.db that are not marked as pending (i.e. fully installed but not transferred to title.db) are deleted using the same internal code AMPXI:DeleteTitle uses.

For NAND, in addition to the above, the first thing this command does is recursively removing all directories under nand:/data that don't match the system ID0 (that is, all directories that are not nand:/data/<ID0>. This deletion step, however, is not performed if a file exists at nand:/data/disabled.