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

@@ -475,6 +475,7 @@ class OotOptionsScreenTests(unittest.TestCase):
(tmp / "gpu" / "vk" / "vk_api.h").write_text(VK_API_H, encoding="utf-8")
shutil.copy(ROOT / "host" / "oot_menu.c", tmp / "host" / "oot_menu.c")
shutil.copy(ROOT / "host" / "guest_bounds.h", tmp / "host" / "guest_bounds.h") # (set_item_key's buffer check)
(tmp / "host" / "hos_bench.h").write_text(HOS_BENCH_H, encoding="utf-8") # ((Triforce, 11-19) benchmark mode: off here)
(tmp / "host" / "t.c").write_text(OPTIONS_FIXTURE, encoding="utf-8")
binary = tmp / "t.exe"
other_half = ["-DHOS_OOT_MENU_NO_MOUSE"] if sys.platform == "win32" else []
@@ -490,6 +491,18 @@ class OotOptionsScreenTests(unittest.TestCase):
self.assertEqual(run.returncode, 0, run.stdout + run.stderr)
# ((Triforce, 11-19) host/hos_bench.h's two calls oot_menu.c makes, benchmark mode off: the menus as a player has them)
HOS_BENCH_H = """#pragma once
#include <stdint.h>
enum { HOS_BENCH_MENU_NONE, HOS_BENCH_MENU_PRESS_A };
static inline int hos_bench_on(void) { return 0; }
static inline int hos_bench_menu(uint64_t screen, uint64_t vt, int focus, int focused_entry, int entries, int *entry) {
(void)screen, (void)vt, (void)focus, (void)focused_entry, (void)entries, (void)entry;
return HOS_BENCH_MENU_NONE;
}
"""
class OotMenuMouseTests(unittest.TestCase):
def test_points_and_clicks_the_menus(self):
if sys.platform != "win32":
@@ -506,6 +519,7 @@ class OotMenuMouseTests(unittest.TestCase):
(tmp / "gpu" / "vk" / "vk_api.h").write_text(VK_API_H, encoding="utf-8")
shutil.copy(ROOT / "host" / "oot_menu.c", tmp / "host" / "oot_menu.c")
shutil.copy(ROOT / "host" / "guest_bounds.h", tmp / "host" / "guest_bounds.h") # (set_item_key's buffer check)
(tmp / "host" / "hos_bench.h").write_text(HOS_BENCH_H, encoding="utf-8") # ((Triforce, 11-19) benchmark mode: off here)
(tmp / "host" / "t.c").write_text(FIXTURE, encoding="utf-8")
binary = tmp / "t.exe"
build = subprocess.run([compiler, "-std=gnu11", "-Wall", "-O1", "-g", "-D_WIN32_WINNT=0x0601",