Triforce v0.5.2

The new launcher (Windows and Linux: the game's own look, music and settings, saves and mods pages, smaller updates in parts), benchmark mode (Find my best settings: the game tours four places by itself and writes its results), Quit and Restart in the pause menu under Mods, Squadala! in the Mods menu, battle music above 60 fps, menu text, the controller in the menus with the game in the background, the whole GameBanana list, RX 580 and RX 5000/6000 shader fixes, the pipeline cache kept through an update, async present black flashes, and faster builds.
This commit is contained in:
ruckus7382sfgsgdf
2026-11-19 10:52:50 -06:00
parent a750a21025
commit fb26495475
167 changed files with 21552 additions and 293 deletions

View File

@@ -953,6 +953,11 @@ static void read_input(uint64_t *buttons, int32_t stick[4]) {
memset(stick, 0, 4 * sizeof *stick);
void hos_mouse_native_stick(int held);
scripted_input(buttons, stick);
/* ((Triforce, 11-19) benchmark mode (host/hos_bench.c) drives the game itself: its presses and stick alone, with the window
in front or behind other windows; the player's devices do not count while it runs (a mouse or a pad would move the camera
it measures) */
int hos_bench_input_only(void);
if (hos_bench_input_only()) return;
/* A scripted run (a test) takes no input from the player's devices until 5 s after its last press (a variable
left set in a shell no longer leaves the game without controls), and otherwise the pads count only
while the game's window is in front, like the keyboard: XInput is global, so a test run in the background
@@ -975,7 +980,17 @@ static void read_input(uint64_t *buttons, int32_t stick[4]) {
static const char *env;
static int looked;
if (!looked) looked = 1, env = getenv("HOS_INPUT_BACKGROUND");
if (pads_in_background(env, rx_option(4, 0))) pads_read(buttons, stick);
/* ((Triforce, 11-18) while the Insert menu is open the pads are its own here too (it reads them in the background
now: gpu/vk/vk_menu.cpp pads_ok), as in front below; read all the same, so the menu's bits stay current) */
if (pads_in_background(env, rx_option(4, 0))) {
uint64_t pb = 0;
int32_t ps[4] = {0};
pads_read(&pb, ps);
if (!rx_option(1, 0)) {
*buttons |= pb;
stick_max(stick, ps);
}
}
return;
}
{ /* (Triforce) The options' tabs inside the game's own Options screen (host/oot_menu.c, gpu/vk/vk_menu.cpp): one of