Playing

scarletnx-agb takes the common options that fit it: -r, --game, --data, --outdir, --output, --frames, --shot, --script, -f, -h and the recompile's (-O, --jobs, --chunk, --jit-cache, --jit-only, --keep-ir, -q), each value as --option VALUE or --option=VALUE. A ROM's code is one module compiled on one thread as one unit, so --jobs, --chunk and --aot-threads-most change nothing, which the recompile says; --jit-cache names another game folder's <name>_code.map, and --jit-only plays with no module.

A MultiBoot ROM (.mb) is a program the console receives through the link cable, as a GameCube game or another console sends one: scarletnx-agb Program.mb plays it with no cartridge, from EWRAM, where the BIOS puts it (256 KiB at most), starting at 0x020000C0 when that word is not zero, else at EWRAM's start, as mGBA does. It has no save memory.

scarletnx-agb Game.gba plays the ROM in a window four times the console's screen, scaled by whole steps when it is resized, with the console's sound and its 59.73 frames a second. -f (or --fullscreen=1) starts it fullscreen, and F11 or Alt+Return switches. Esc twice within 3 seconds closes it (the runtime's keys, as a Switch game takes them: On-screen controls), a first press warning on the terminal and in a line over the game, as a Switch game's notices show. The screen goes through Vulkan, as the other consoles' windows, where the host has a Vulkan 1.3 device that presents to the window; without one, through SDL's renderer, which the start says, the same pixels either way. The keyboard is the Switch runtime's: the arrows are the D-pad, X or Space A, Z B, Q L, E R, Enter Start and Backspace Select. A gamepad's buttons are where the console has them (A east, B south), its shoulders and triggers L and R, its left stick the D-pad. The ten keys are on the screen too, over the picture, for fingers and the mouse's left button (On-screen controls): shown on a touch screen while no gamepad is connected, or as --controls= says, their layout edited with F2. --script ms:hex,... presses keys unattended, as the 3DS and Vita drivers take it: each press at its time in ms from the start of the run, by the console's frames (the same with a window or without), its keys in KEYINPUT's bits (1 A, 2 B, 4 Select, 8 Start, 10 Right, 20 Left, 40 Up, 80 Down, 100 R, 200 L), held for --press-len= ms (300). --gba-color=gba (the default) shows the colours as the original GBA's unlit screen did, near's color emulation formula; --gba-color=raw as the game writes them, as mGBA without a shader (Settings > GBA > Colors).

The game's folder is recompiled/<name>/ of the data folder (--data, else the user's), named after the ROM's file, or <name>/ of --outdir, or the folder --output names. It holds the module, the save (<name>.sav), a copy of the runtime named after the game (<name>, <name>.exe on Windows), the DLLs beside that copy on Windows, which the copy loads, and <name>.ini, whose source= names the ROM and system=gba the console the launcher plays it with, as a 3DS or Vita game's folder does; the ROM's folder stays as it is. The copy plays its game alone, from the ROM its .ini names, and scarletnx-agb --game=recompiled/<name> plays it the same way; -r compiles the module again without playing. A build copies its runner beside every GBA game again (cmake/deploy.cmake), which it tells by that system=gba. A <ROM>.sav beside the ROM, which another emulator keeps, is read once, when the folder has none. What the game writes to its SRAM or flash reaches the disk a second after it writes, and when the window closes.


Made from docs/platforms/agb/README.md at 69237645142c. GPL-3.0-or-later.