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

@@ -15,7 +15,8 @@ page marks over them.
keys' order are those of one process;
- a worker that raises, one that dies, one that does not answer and one whose lifter class was set up otherwise than the
lift's process each end the lift with SystemExit and what was said, soon, and leave no lifted file behind; so does a
process failing at the page marks;
process failing at the page marks, and (Triforce, 11-27) one without nx2/local_flags.py's wrap of the kit's FCMP form
or that reads the flags' switch otherwise;
- a lift that ends on an error of its own while the page marks are being made leaves every file whole and marked;
- the processes of a lift that was stopped from outside end by themselves;
- HOOKSHOT_LIFT_JOBS chooses the count, 1 is one process, the default is half the processors (at most 8, one a GB), and
@@ -398,6 +399,32 @@ def test_failures(tmp, one):
same("a lift after the failures", one, lift(os.path.join(tmp, "after"), 3))
def flags_off():
"""(a spawned process's setup) the flags in the context there, where the lift's process has them as locals"""
os.environ["A64_LOCAL_FLAGS"] = "0"
def test_flags_setup(tmp):
"""(Triforce, 11-27) nx2/local_flags.py's wrap of the kit's vectorize_fcmp, and the flags' form as a process reads it, are
part of what a worker is compared on: a worker without the wrap would write the kit's FCMP form, one that read the flags'
switch otherwise the other form, where the lift's process writes a64_fpx.h for its own (a link error, or other C)"""
import local_flags
with mock.patch.object(a64_lift, "vectorize_fcmp", a64_lift.vectorize_fcmp), \
mock.patch.object(a64_lift, "local_flags", a64_lift.local_flags), \
mock.patch.object(local_flags, "_installed", False), mock.patch.dict(os.environ):
os.environ.pop("A64_LOCAL_FLAGS", None)
local_flags.install()
folder = os.path.join(tmp, "flags-wrap")
got = lift(folder, 3)
failed("a worker without nx2/local_flags.py's wrap", got, "local_flags.install.<locals>.vectorize_fcmp", "setup")
check("a worker without nx2/local_flags.py's wrap: lifted files are left", lifted(folder) == [])
folder = os.path.join(tmp, "flags-off")
got = lift(folder, 3, setup=(poll.install, authored_translator, local_flags.install, flags_off))
failed("a worker that reads the flags' switch otherwise", got, "in the context (local_flags.kit_reads)",
"as locals (local_flags.kit_reads)", "A64_LOCAL_FLAGS is not the lift's")
check("a worker that reads the flags' switch otherwise: lifted files are left", lifted(folder) == [])
def alive(pid):
if os.name == "nt":
import ctypes
@@ -576,6 +603,7 @@ def main():
test_order_of_answers()
one = test_the_same_c(tmp)
test_failures(tmp, one)
test_flags_setup(tmp)
test_abandoned_marks(tmp, one)
test_orphans(tmp)
test_jobs()