The driver works in one folder, its data folder, the first of these that applies:
--data DIR names (the menu names its own);.scarletnx/ beside the AppImage, or beside the Windows zip's programs, when it is there;~/.local/share/scarletnx on Linux, %APPDATA%\scarletnx on Windows,
~/Library/Application Support/scarletnx on macOS. On Android the app names its own, .scarletnx/ in its own
storage (Android host).A driver run from its build tree works in the same folder as an installed one: the checkout it was built from is
not a data folder. --data DIR, or --outdir DIR for a recompile, keeps a run's files in one folder of your choice.
Each game is a folder of recompiled/ named by its title ID, recompiled/<title ID>/ and its files
<title ID>* in it; a program without an ID of its own (an NRO, an ExeFS without NPDM) by its name, and
--name names any. The game is shown by the name in its control.nacp (the window, the recompile, the menu's
list). The user's data folder and a portable copy's keep each kind of file apart: on Linux the user's in the
XDG folder of its kind, elsewhere in its own config/,
state/ and cache/. Any other folder --data or --outdir names keeps everything in its games' folders.
| What | Another --data, an --outdir | Linux, the user's data folder | A portable copy's, the user's elsewhere |
|---|---|---|---|
a game: its program, <id>_code.so, <id>_data/ (saves, control.nacp, its SD card sdmc/ with the pictures it saves to its album in Nintendo/Album/, as the console has them), captures/ | recompiled/<id>/ | ~/.local/share/scarletnx/recompiled/<id>/ | recompiled/<id>/ |
its settings, <id>.ini | recompiled/<id>/ | ~/.config/scarletnx/recompiled/<id>/ | config/recompiled/<id>/ |
its <id>.log (this run's; the 4 before in logs/<date>.log) and threads.txt | recompiled/<id>/ | ~/.local/state/scarletnx/recompiled/<id>/ | state/recompiled/<id>/ |
| its pipeline cache | recompiled/<id>/shader_cache/ | ~/.cache/scarletnx/recompiled/<id>/shader_cache/ | cache/recompiled/<id>/shader_cache/ |
extractions (3ds/ for the 3DS driver) | work/ | ~/.cache/scarletnx/work/ | cache/work/ |
the menu's themes, <name>/theme.ini | - | ~/.local/share/scarletnx/themes/ | themes/ |
the menu's settings.ini, app.ini, folders.txt, gamecontrollerdb.txt | - | ~/.config/scarletnx/ | config/ |
the setup's setup.ini (Setup) | - | ~/.config/scarletnx/ | config/ |
the menu's recent.txt, last-run.log, last-recompile.log (a second launcher open at once last-run-2.log and last-recompile-2.log), its log scarletnx-console-<date>.log (a file a day, the 14 newest kept) and fatal errors scarletnx-error.log (GUI; iOS: logs/ of its Documents) | - | ~/.local/state/scarletnx/ | state/ |
the menu's Share Log, scarletnx-logs-<date>.zip or scarletnx.log (iOS: logs/share/ of its Documents) | - | ~/.local/state/scarletnx/share/ | state/share/ |
prod.keys, read before ~/.switch | the folder | ~/.local/share/scarletnx/ | the folder |
the console's users, users.ini and <uid>.jpg (Users), and online.ini, an Eden room's password (room) | users/ of the user's data folder | ~/.local/share/scarletnx/users/ | users/ |
the users a program deleted, each in user.<uid>.<UTC time>/ with its users.ini section, picture and saves (Users) | trash/ of the user's data folder | ~/.local/share/scarletnx/trash/ | trash/ |
The menu works in the user's data folder or a portable copy's, unless its Settings > App > Folders picks a data
folder, a games folder or an extractions folder (GUI): it passes them to the driver as --data, --outdir
and --out (an extractions folder picked keeps a Switch dump's extraction there, the game made from a copy; to the
3DS driver as --data and --output), and its own files stay where they are. Its Logs and Caches move the state and
cache folders of the table: [folders] state = and cache = in app.ini, full paths, which the menu, the drivers
and the games read (a game's .folders below names them), its files going to the same place under them
(recompiled/<id>/<id>.log of the state folder); a value that is not a full path is said once and the default kept.
The config folder holds app.ini, so it moves only with $XDG_CONFIG_HOME or a portable copy. On Android they
are in its data folder's config/ and state/, in the app's own storage, which needs no permission. ~/.local/share, ~/.config, ~/.local/state and ~/.cache are the
defaults of $XDG_DATA_HOME, $XDG_CONFIG_HOME, $XDG_STATE_HOME and $XDG_CACHE_HOME (a relative one is ignored).
Each time the driver makes or starts a game of the user's data folder, it names the folders of the game's settings, log
and caches in recompiled/<id>/<id>.folders, where the game reads them: started with other variables (its copy of an
AppImage run with --appimage-portable-config or --appimage-portable-home, a shortcut), it finds them there.
An older version made its games in the data folder's games/ (recompiled/ now, the dumps in dumps/ beside it), and
kept a game's files side by side in games/ (games/Game, Game_code.so, Game_data/,
Game.ini), the menu's in the data folder's gui/, outside Linux the rest in the data folder itself, a portable
copy's in a games/ beside the program, and a build tree's games/, work/ and keys in its checkout. This one moves
none of it by itself: as long as it is there, the launcher's setup shows each folder on a page of its own (Old Files,
GUI) with where it goes now and asks on the last whether to move them all, delete them all (never a save
nor the console's keys) or not now, the driver says so on each run, and an older game runs where it is, its run saying
where its folder goes. Asked, it moves them:
./build/scarletnx --migrate # each entry a line and where it would go; nothing is touched
./build/scarletnx --migrate=yes # moved, the same lines; Settings > App > Move Old Files in the menu
Each entry of an older folder goes into the folder this version keeps it in, the data folder's games/ with its games'
settings, logs and caches in the config, state and cache folders; one already there stays, and one on another disk is
not moved, each said with both paths, the status 1. A game laid out beside the others is not moved by name: it moves
as Deprecations says.
Made from docs/user/usage.md at 69237645142c. GPL-3.0-or-later.