Triforce v0.8.5

A Randomizer page in the launcher, a new title screen with Mods and Save Select tabs, scaling changes applied in game, the Jabu-Jabu bars fixed, renderer frame-time work and the brightness-flash fix, and fixes from the 0.8.4 reports.
This commit is contained in:
ruckus7382sfgsgdf
2026-11-28 10:54:41 -06:00
parent 2df08c751e
commit b527e29adb
203 changed files with 18821 additions and 2051 deletions

View File

@@ -14,6 +14,12 @@ own (menu_sound.c's state is the process's):
- frames: the sounds the options asked for, in the next block, in order, at the row's level; nothing read or played
with the row at 0 or without a renderer
- master: the sounds in the front left and right, under the Master volume, the block held at the 16 bits' ends
- roles, roles-long ((Triforce, 11-25) the owner: "They should be using the title screen's SFX instead of the in-game Menu
SFX"): the settings' tabs, the Mods screen and the step back to the pause menu's System list have a sound each, the
system menu's cursor, small decide and cancel; the variable of the environment that names another for each (a sound's
bare name alone; one that is not a name, not in the game's files or not a sound leaves the role its own, said in the
log); a file two sounds name is read once. In voices: their ticks are ticks, and a direction held with a tick of
1.6 s takes the oldest tick's voice, never a longer sound's
The source is read too: render_frame adds the sounds after the game's limiter and before the Master volume; the file
reader goes through the mods' table; the two option ids are 135 and 136 (tests/test_menu_sound_events.py has the
@@ -30,7 +36,7 @@ import tempfile
from pathlib import Path
ROOT = Path(__file__).resolve().parents[1]
SCENARIOS = ("decode", "voices", "load", "frames", "master")
SCENARIOS = ("decode", "voices", "load", "frames", "master", "roles", "roles-long")
def check(cond, what):
@@ -64,6 +70,14 @@ def main():
"hos_fs_rom_file does not look in the mods' table first, or takes any path")
check("hos_fs_rom_file(files[id], FILE_MOST, &size)" in sound and "CreateThread(NULL, 0, load_main" in sound,
"menu_sound.c does not read the files through nn_fs.c on a thread of its own")
# ((Triforce, 11-25) the roles' sounds from the environment: read where the files are, a name held to the sounds' folder)
check("const char *name = MENU_SOUND_ENV(roles[k].env);" in sound and "#define MENU_SOUND_ENV(name) getenv(name)" in sound and
"if (!role_name_ok(name)) {" in sound and
'snprintf(role_files[k], sizeof role_files[k], "Sound/Resource/Stream/%s.bwav", name);' in sound,
"menu_sound.c does not read a role's sound from the environment as a bare name of the sounds' folder")
load = sound[sound.index("static void load_all(void) {"):]
check(load.index("roles_from_env();") < load.index("load_sound(id)") < load.index("atomic_store_explicit(&loaded, 2"),
"the environment's sounds are not set before the files are read")
check(re.search(r"enum \{ HOS_OPT_MENU_SOUND = 135, HOS_OPT_MENU_SOUND_VOLUME \};", api),
"vk_api.h's options for the sounds are not 135 and 136")
for i in range(135, 140):