mirror of
https://git.triforceproject.com/triforce/source
synced 2026-11-29 04:18:49 -04:00
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:
@@ -4,7 +4,9 @@ Text checks: what is cut (pieces of about the size asked, every label in exactly
|
||||
gotos into other pieces become returns of the label's id with their interrupt poll kept, guest returns and tail calls
|
||||
become ids the dispatcher turns into `return` and TAILCALL), what is left whole and why (a top-level declaration, a label
|
||||
inside a block, a literal, a goto to a label the function lacks, a function too small or below the size asked), and
|
||||
build.py's switch (on at 8 KB unless HOOKSHOT_SPLIT_GIANTS says otherwise).
|
||||
build.py's switch (on at 8 KB unless HOOKSHOT_SPLIT_GIANTS says otherwise). (Triforce, 11-27) And a giant with
|
||||
nx2/oot_patches.py's hook at its head (the mouse look's, in the player camera's update) is cut with its guest locals:
|
||||
the hook goes after their lines.
|
||||
|
||||
Compiled checks (Clang: the build compiles lifted code with clang on every OS, nx2/build.py `toolchain.find("clang")`),
|
||||
each a function compiled whole and split into one program against the build's own guest model (nx2/rtgen.py's a64.h),
|
||||
@@ -297,6 +299,26 @@ def real_text_checks():
|
||||
"%s: a piece never loads its locals from the context" % what)
|
||||
|
||||
|
||||
def head_hook_checks():
|
||||
"""(Triforce, 11-27) A hook nx2/oot_patches.py puts at a function's head goes after the guest locals' lines the kit
|
||||
writes there, which split_text takes only as the body's first lines (locals_of): with the mouse look's hook above the
|
||||
flags' declaration, the player camera's update (f_80644c80, 632 KB with the flags as locals, the default) was left
|
||||
whole as "a top-level declaration", its pieces' profile unused"""
|
||||
import oot_patches
|
||||
name = "f_%08x" % MAIN
|
||||
for env, what in LOCALS_ENVS + (({}, "no locals"),):
|
||||
text, _, _ = emit_real(7, 40, env, below=False)
|
||||
cam = '#include "a64.h"\n' + text.replace("void %s(" % name, "void f_80644c80(", 1)
|
||||
got = oot_patches.patch_mouse_camera(cam)
|
||||
hook = " hos_mouse_camera(c->x[0]);"
|
||||
check(got is not None and got.count(hook) == 1 and oot_patches.patch_mouse_camera(got) == got,
|
||||
"%s: the mouse look's hook is made once, and a second run changes nothing" % what)
|
||||
notes = []
|
||||
o, s = SG.split_text(got, piece_kb=1, min_kb=0, only={"f_80644c80"}, notes=notes)
|
||||
check(s["functions_split"] == 1 and s["functions_split_with_locals"] == (1 if env else 0) and o.count(hook) == 1,
|
||||
"%s: the camera's update with the mouse look's hook is cut: %s %s" % (what, notes, dict(s)))
|
||||
|
||||
|
||||
# ---- the compile_one integration (3) and the text checks -----------------------------------------------------------
|
||||
def text_checks():
|
||||
rng = random.Random(1)
|
||||
@@ -636,6 +658,7 @@ def main():
|
||||
a = ap.parse_args()
|
||||
text_checks()
|
||||
real_text_checks()
|
||||
head_hook_checks()
|
||||
cc = find_cc(a.cc)
|
||||
if not cc:
|
||||
check(False, "no Clang to compile with (%s): the build compiles lifted code with clang; give --cc, $CC, PATH or "
|
||||
|
||||
Reference in New Issue
Block a user