3DS driver

scarletnx-3ds --key=value (3DS). The launcher's Settings show them in the 3DS group, the screens' rows on it and the others on its Debug page, and pass each one picked to a 3DS game's run. ctr_script alone is a run's own, given on the command line (--script= too) and on no page.

KeyDefaultEffect
ctr_nasc_urlemptyThe NASC a 3DS game's login posts to with ctr_online=pretendo: empty is Pretendo's, https://nasc.pretendo.cc/ac/; another http:// or https:// URL is a NASC of your own (a Pretendo server run locally)
ctr_ipc_trace01 logs each service request the 3DS game sends, its service and header, in the order sent
ctr_hooks11 runs the 3DS game's IPC stubs (the SDK's functions that send a service request) in the runtime, which sends their requests to the services without the TLS command buffer and the SVC, and runs a GX command at the SDK's enqueue. 0 leaves every request to the game's code
ctr_svc_trace01 logs each SVC the game makes that answers a failure (r0 with its top bit set), 2 every SVC, with the thread, its pc and r0 to r3 before and after
ctr_stand_in1With async_pipelines=1 on a GPU with shader objects (VK_EXT_shader_object), 1 draws a draw whose shaders are still being made with stand-in shaders: one that runs the vertex program from a buffer, and one that reads the fragment state as it goes. They draw it as its own shaders would, so it shows at once instead of a few frames late. A draw with a procedural texture, gas or shadows is still skipped. 0 skips every such draw until its shaders are made. 2 gives the stand-ins every draw they can draw, to test them
ctr_gpu_trace01 logs each GX command the game queues, and each framebuffer swap the display takes or drops, and why
ctr_uds_trace01 logs each local wireless packet of the game that goes through an Eden room (local wireless): its direction (sent, received, delivered), the time, its size and its first 96 bytes in hex
ctr_jit_trace01 logs each block the runtime compiles while the game runs (the static module lacked it), Thumb ones with the pc's low bit set as the hints file writes them
ctr_auto_stub_ipc11 answers success to a command of a 3DS service the runtime doesn't know, and has a stand-in answer each command of a service it doesn't have, each logged the first time, as auto_stub_ipc does for a Switch game. 0 stops the run at the first, saying which, but for the services --ipc-stubs names
ctr_scriptemptyThe game's scripted input (--script= too): when:buttons, a comma between two, when in ms from the start and buttons in hex as hid:USER's pad has them (1 A, 2 B, 4 Select, 8 Start, 10 Right, 20 Left, 40 Up, 80 Down, 100 R, 200 L, 400 X, 800 Y, 4000 ZL, 8000 ZR), each held for press_len ms
ctr_modelautoThe console the game runs on: auto the one it was played on before, which its .ini records (model=), and for its first run a New 3DS where the game is New 3DS exclusive or asks for the New 3DS's 178 MiB memory mode, else an Old 3DS; old and new that console, as --model, which wins over it. Another value stops the game, saying so. A game's own Settings (M on it in Games) pick old or new for that game alone, ctr_model= in its picks (<title ID>.picks beside its .ini): under --model and a --ctr-model= on the command line, over this one, which the launcher gives with --launcher-picks=1; another value there is said with the one it keeps
ctr_screen_layout00 stacked, 1 one screen, 2 large screen, 3 side by side, 4 separate windows
ctr_screen_swap01 swaps the screens' places, and shows the bottom one alone in the single-screen layout
ctr_top_resolution1The scale of the top screen's 3D rendering, 1 to 16: 1 is the console's 400x240, 2 800x480; the screen is scaled to its window
ctr_bottom_resolution1The same for the bottom screen: 1 is the console's 320x240, 2 640x480

The Switch's upscaler, upscaler_sharpness and anti_aliasing (Graphics) scale each screen to its place in the window, and the start says which run.


Made from docs/user/settings.md at 69237645142c. GPL-3.0-or-later.