An update or a DLC is recorded beside its game, in the game's folder, and checked in the game's list of updates and
DLCs, addons= in the game's .ini (their title IDs, a comma between two). The game plays with what that list
checks: any number of DLCs and one update at most. Give their dumps with the game's, or alone once the game is in
recompiled/:
./build/scarletnx Game.xci --update Update.nsp --update Dlc.nsp # the game made first if it isn't yet
./build/scarletnx Dlc.nsp # a game made already: its DLC checked too
./build/scarletnx -r recompiled/<id>/<id> --update Dlc.nsp # a game made already, its dump not needed
Each dump given is checked along with what the list checks already: a DLC is added, and an update, older or newer,
takes the place of the one checked before, as installing an older update means playing it. The launcher lists a
game's updates and DLCs under it: opening a game that has some shows its updates as a choice of one (each version
installed, the newest first, by its version from its own control data, or No update) and its DLCs as boxes to check
(DLC 1, numbered from the base ID the game's control data gives). Save keeps the choice in addons= without
playing, Play keeps it and plays the game, and Back leaves the list as it was. A 3DS game's update and DLC CIAs are
kept the same way by scarletnx-3ds (scarletnx-3ds DLC.cia, or --update with the game); an update there has no
program of its own, as the game's reads its code, and is listed by its TMD's version (Update v1040): see
3DS.
Games groups a game's update and DLC dumps found in the dumps folders as one item, under Updates and DLCs
(A game: update 1.0.1 + 99 DLCs), by what each dump is (its content meta, which -x --icon reads into the icons'
cache as title.ini), whatever its file is called: the newest update and each DLC once. Opening the item puts them in
the game made already (-r on its program, --update each), else recompiles the game's dump with them, else says
which game is missing. Making a game's dump with such dumps of it around asks Found the update 1.0.1 and 99 DLCs of
this game. Recompile together?, Yes in focus; No makes the game alone.
recompiled/<id>/<id>_<its title ID>v<its version>, which runs whenever it is checked. Every version of a game's update
has the same title ID, so each version installed keeps a program of its own, its version its content meta's. A DLC runs its game's code and has no program,
only its record: its own .ini, which holds source= (the path of its dump), and its data folder. A DLC program
an older version made is taken away the next time its dump is played..ini and its game's data folder, so its saves are the
game's..ini must name it, which
playing the game's dump records). Each checked DLC's RomFS image is read from its dump and served as installed. A
checked DLC whose dump is not there is left out, and the log says so. With Extract dump, an update is
extracted into its own data folder with its RomFS applied, and a DLC's image goes to
system/archives/<its title ID>.romfs in its own. Those folders lie over the game's: an update's ExeFS, RomFS and
control data replace the game's, a DLC's system/ is added to the game's, and nothing else of theirs is used.-x keeps extracting an update over its game into one folder (-x Game.nsp --update Update.nsp), and extracts a
DLC's dump given alone as its RomFS image.
A collection is one application of several programs: its menu, program 0, starts each of its games, another program
of the same application, through nn::oe::ExecuteProgram. Its content meta numbers them, program i the
application's title ID plus i, and that program's patch in an update the update's ID plus i.
recompiled/<id>/<id>_<its ID>: its code (_code.so), its stamp (.abi) and its data
folder (_data/, its own control.nacp, and its ExeFS and RomFS with Extract dump), no copy of the runtime. An
update's patch of program i is recompiled/<id>/<id>_<the update's ID + i>v<version> the same way, and plays
while the update is checked. Each reads its own program of the dump in place, as the game's does.recompiled/<id>/<id>.next, the hand-over: the program it starts, its own index, the user channel's storages it
passes and whether it stored its open user. Its launcher (the driver, and the launcher, which plays through it;
the phone's app) starts that program with the same options, on the game's runtime with --game= it, and the program
takes the hand-over away as it starts. GetPreviousProgramIndex then answers the index of the program that started
it, -1 for one the player started..ini and data folder, and keeps its saves as the
application's, under the game's title ID: the owner each program's control.nacp names (SaveDataOwnerId), one save
for all of them, as the console keeps a program of several by its main program.<id>_<its ID>_data/mods/, laid as
Eden lays a program's (load/<its ID>/ over load/<the application's ID>/): both folders' mods by their names,
its own after the game's of the same name; mods_off= is the game's for both. Cheats find their program by the
build ID of its main module.scarletnx Game.nsp --program 2 (or --program=2) plays program 2 directly, without its menu,
0 (the default) being the menu. One that is not made plays program 0, and the run says both: --program 5:
program 5 is not one of this application's programs 0-3: it starts program 0. -r --program 2 recompiles that
program alone, and -x --program 2 extracts it.Made from docs/user/usage.md at 69237645142c. GPL-3.0-or-later.