Make every settings menu row work for Ocarina and give the controls Ocarina's actions and keys.

The Screen tab hides Game resolution when the build has no output and scene patch sets, and the resolution code no
longer grows the memory pool for it. FSR sharpness now also runs when the game image is shrunk to the window, which is
always the case for Ocarina's 2560x1440 picture at 1920x1080, and the overlay drops NX2navi's fixed 3D scene size. A colour
profile set in nx2navi.ini now applies without the menu. The Game tab hides the frame limit in builds without frame-rate
patch sets and lists the game languages the RomFS ships, adding Polish and Brazilian Portuguese. 5.1 sound is reported to
the game's virtual output device. The remap page describes each button as Ocarina's controls screen does, gives each
D-pad direction its own description and drops NX2navi's shake row; the keyboard defaults follow Ocarina (Shift dashes on A,
Ctrl puts away on B, O and N for the ocarina and Navi, middle mouse resets the camera). docs/controls.md is updated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
chrg6
2026-11-06 11:33:06 -05:00
parent 618b9ba4e5
commit 9a5b1163f3
18 changed files with 385 additions and 174 deletions

View File

@@ -1038,7 +1038,10 @@ static void virtual_device_manager_handler(IpcSession *s, const IpcRequest *rq,
case 401: { // GetVirtualOutputDeviceProperties(name) -> block
uint8_t block[0x228] = {0};
memcpy(block, virtual_output, sizeof virtual_output);
uint32_t v[4] = {3, 2, 2, 48000}; // type, (2), channels, sample rate
// type, (2), channels, sample rate. The channels are this run's output (output_channels), as IAudioDevice's
// GetActiveChannelCount reports: a Switch 2 game (Ocarina) sizes its mix from this block, so a constant 2
// here kept 5.1 at stereo
uint32_t v[4] = {3, 2, (uint32_t)output_channels(), 48000};
memcpy(block + 0x100, v, sizeof v);
memcpy(block + 0x110, device_name, sizeof device_name);
uint64_t latency_ns = 10000000;