Up/Down and Left/Right move the yellow focus, wrapping at the ends.
Tab and Shift+Tab go round the menu, Games and the Settings, the tabs at the top, and Compile while the queue of compiles holds one (below); a click on a tab opens it. A theme edited and not saved keeps its screen.
A list with rows out of sight (the menu with big letters, recompiled/'s pages, the Settings, the theme
editor) shows an arrow at the right end of its first row, up, and of its last, down, in the soft colour.
Moving the mouse over an item focuses it in yellow without activating it; in the Settings, a row of the list the keys move in (the groups, or the rows of the one open), the other list, a tab and Back waiting for a click.
A gamepad drives the menu as the keys do (src/gui/pad_menu.c): the D-pad and the left stick are the arrows, the
button labelled A (or Cross) is Enter, B (or Circle) ESC, X (or Square) Del and Y (or Triangle) R, wherever the pad
has them (a Switch pad's A is east, its X north), LB and RB are Shift+Tab and Tab, LT and RT are PgUp and PgDn, L3
and R3 are M and B (Games' mods, another console's game's own Settings, and AOT pack), the right stick pushed any way is L (Games' Play, once until it is
back), Start is F5 and Back (View, Minus, Select) F1. On Games, X opens
the focused game's save states, as S does, and in that box it deletes one, as Del does. A held arrow or
page repeats. A press on the pad hides the mouse's cursor and the foot names the pad's buttons, a PlayStation pad's
by their shapes; a key or the mouse moving past a few pixels shows the keyboard's again, and so do a click and a
finger once they have pressed what the foot showed under them: the press that switched does what it does. The Button
map page and a Controller row waiting for a press read the pads themselves. While a run goes the menu lets go of the
pads, for the game.
The keys at the foot are buttons: a click or a tap on one presses it, as the keyboard does (ESC or
Back goes back, Tab to the next screen, Enter or Tap selects; Drag says what the finger does). A key of
words between slashes presses the word clicked, Left or Right of Left/Right; the text after it
presses the key when its words all press one. Arrows, mouse, pad and D-pad press nothing.
The menu, top to bottom: the three loads, Install Keys, Settings, Share Log,
Folders, and Exit. The games, and the recent ones, are the Games tab's. A load whose driver
is neither beside ScarletNX nor on PATH, as those an app leaves out (macOS and iOS), is greyed out, still there,
and Enter or a tap on it says which driver it misses rather than opening its screen; the drivers are looked for
again each second, and with F5. On Android the drivers are the ones the app's build put in libscarletnx.so
(Android host): one it left out says that the app does not include it.
Space, Enter or a left click explicitly activates an item, marking it bright pink. Activation is tracked separately from hover/focus, so the activated item stays pink while another item is hovered in yellow. Mouse controls also work on Games' rows.
A finger taps an item anywhere on its row, as a click does on its label. A drag up or down on any list whose rows do not all show, Games' grid too, moves its rows with the finger, the focus where it was, and let go fast they glide on, slowing to a stop; on the Settings, the side panel a list, the drag that passes onto it opens the group in focus there, its rows taking the focus, and back onto the groups they take it back, the panel showing the group in focus again. A tap on a finished run returns to the menu, and one on a running run's ESC line aborts it. Android's back button is ESC. On a screen packed with pixels (a phone) the text takes the display's own scale, as far as the menu still fits.
Load Switch NSP/XCI/NRO, Load Linux ARM ELF, Load 3DS game, Load Vita VPK, Load GBA/MultiBoot ROM,
Load NDS ROM and Load Android APK/XAPK open a screen as the keys': a click on its blinking [ Pick or drop a file ], or Enter, opens the system's file
picker (on Linux the desktop's, else zenity's). Dropping a file on the window and Ctrl+V with
a path work too. On the Switch's, P (on a phone a tap on Folder at the foot, on a pad Y) opens the system's
folder picker instead, for an extracted game's folder (exefs/ with its main, beside its romfs/), which plays as
a dump does, read where it is; dropping that folder works too. ESC returns to the menu. On Android the picker opens at once. A dump is read where it lies
and takes no room, unless Extract dump is on. Then one not extracted yet takes about its size, a Switch
dump's extracted straight into its game's folder (as much again only with an Extractions folder picked, which
keeps a copy, and in the temporary folder with Extract to tmpfs); when its disks have less free, the menu says how
much it needs and Run Anyway takes a second press. With more than one folder of the recompiled library that can
take a game (its Main, and each Extra that can be written and runs programs), a box asks which the dump's game goes
in, Recompile on its tab: each folder with what it is and its free room, the Main first and in focus; ESC runs
nothing. The one taken is the run's --outdir, and the room asked about is that folder's.
Load 3DS game uses scarletnx-3ds. Its games/ browser lists CIA, CCI, 3DS, CXI, APP, HBB, BCCI/BCXI/BCIA and ZCCI/ZCXI/ZCIA inputs,
not host executables. The driver reads supported decrypted application CIAs, cartridge images (a card's
update partition played as the update) and bare NCCHs where they lie, or extracts them with Extract dump.
The driver then compiles the ARM11 code ahead of time and runs it, on Linux and
Windows. Larger images use bounded conservative discovery (16 MiB text cap).
SuperTux shows its title screen and plays its music, but takes no input yet.
Full HLE/devices remain incomplete. Like the Switch driver, it uses an
extraction (or the CIA itself) and a compiled module already there, and recompiles only when needed.
See 3DS port for limits.
Load Vita VPK uses scarletnx-vita, with the menu's data folder as its --data. The driver extracts the VPK
into its game's folder of recompiled/ (named after its title ID), compiles its code ahead of time and plays it,
compiling at run time what it missed. A VPK extracted and compiled before plays at once. See
Vita driver for limits.
Load GBA/MultiBoot ROM uses scarletnx-agb, the AGB board runtime, with the menu's data folder as its
--data, on a .gba or a .mb (a program the console receives through the link cable): it makes the game's folder
of recompiled/ (named after the ROM's file), its module and its copy of the runtime, and plays it in a window. With
Settings > GBA > Covers on Box art (libretro-thumbnails) (gba_covers=boxart, off by default), each make that
ends well downloads the game's box into its folder (icon.png), which its rows show; a ROM with no box there keeps
Wimsy, and its row says why (Settings). See AGB board.
Load NDS ROM uses scarletnx-nds on a card image (.nds), with the menu's data folder as its --data: it
makes the game's folder of recompiled/ (named after the image's file), compiles the game's code ahead of time
on the first run, which takes a few minutes, and plays it in a window with both screens. See
DS.
Load Android APK/XAPK uses scarletnx-android on an .apk, .xapk or .apks file, with no other argument.
The driver installs a bundle of split APKs itself. The app runs as it is, as a Linux program does: nothing is
compiled first, and its recent row shows at once. An APK in a games or dumps folder shows in Games, and Enter runs
it the same way. R on it says that it runs as it is. See Android apps.
Install Keys, immediately after the five load entries, blinks red (the theme's failure colour, at its
blink_ms) while no keys are in use, the Switch's or the 3DS's. Its screen has a row for each console's file,
Switch prod.keys, 3DS aes_keys.txt and NDS bios7.bin, each Installed or Not installed: Up and
Down (a pad's D-pad) go over them, a click on one picks its file, and under them the row in focus says where its
file goes (Installs to). It prompts you to
pick a keys file (a click on the blinking [ Pick or drop a keys file ] in the middle of
the screen, the theme's [prompt], or Enter), drop it, or paste its path with Ctrl+V. A file picked is the row in
focus's; one dropped or pasted goes by its name: a prod.keys is the Switch's and is installed to
~/.switch/prod.keys (or
%USERPROFILE%\.switch\prod.keys on Windows; on Linux, in the user's data folder, it is put there
instead, ~/.local/share/scarletnx/prod.keys, which the driver reads before
~/.switch, and names the keys of ~/.switch it would use until then), and an aes_keys.txt is the 3DS's, installed
to ~/.3ds/aes_keys.txt (%USERPROFILE%\.3ds on Windows), where the 3DS driver reads it. Any other file is the
DS's ARM7 BIOS when it is named bios7.bin, has 16384 bytes or the NDS row has the focus: it is installed as
bios7.bin in the data folder (~/.local/share/scarletnx/bios7.bin, %APPDATA%\scarletnx\bios7.bin on Windows)
when its CRC-32 is 0x1280F0D5, the console's, and refused otherwise, the screen saying its size or its CRC-32 and the
BIOS's. scarletnx-nds decrypts with it a card image whose secure area is still encrypted
(The DS). Only encrypted 3DS files need the
3DS keys: a decrypted or homebrew 3DS game runs without an aes_keys.txt. It creates the
folder if needed. Existing keys trigger the bright-red warning
Keys already setup. This will overwrite the previous ones. The screen then says what the try
did, Installed or Not installed and why, and goes back to the menu by itself after 3 seconds
(10 after a failure, while another file can still be picked); ESC cancels without changing them.
Made from docs/user/gui.md at 69237645142c. GPL-3.0-or-later.