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

@@ -46,6 +46,7 @@ the switch is in docs/development.md.
import argparse
import ast
import random
import re
import struct
import subprocess
import sys
@@ -734,6 +735,14 @@ def check_patch():
assert patch(out) == (out, 2), what # (a second run)
# (the order of the two: the marks made over the patched lift are what the patch makes of the marked one)
assert marks(patch(LIFTED)[0]) == patch(marked)[0]
# ((Triforce, 11-27) a lift with the flags as locals (nx2/local_flags.py, the default): each call goes after the flags'
# declaration the kit writes after the head, which nx2/split_giants.py takes only as the body's first line. With the
# call above it f_8010b380, 378 KB in such a lift, was left whole as "a top-level declaration")
local = re.sub(r"^(void f_[0-9a-f]+\(Ctx \*__restrict A64_NOESC c\) \{\n)", r"\1" + oot_patches.FLAG_DECL, LIFTED, flags=re.M)
out, n = patch(local)
assert n == 2 and unhooked(out) == local and patch(out) == (out, 2), n
for head, name, _ in oot_patches.ZSTD_SITES:
assert out.count(head + oot_patches.FLAG_DECL + oot_patches.ZSTD_HOOK % name) == 1, ("after the flags' declaration", name)
# (a function at that address whose code is not the decoder's, as in another game version or a changed lift: left as it
# is, whichever of its lines differs or comes twice, before the marks and after them. The lines are written as the lift
# is before the marks: that is the text the patch sees)