Triforce v0.8.0

Evil HD (SMAA Ultra, 16x filtering, full textures, ambient occlusion with bounce light, sunlight shafts, foliage drawn 4x as far, the remastered texture pack's loader and the launcher's download of it), FSR 3.1 frame generation for every GPU, Intel XeSS, FSR 4 model choice, ReShade presets, Auto (this PC), HUD placement, the options menu in 13 languages, a second input for every control, hold to toggle, DualSense speaker and haptics, NFC from the player's own dumps, the above-60 fps game fixes, the Debug tab's flight and Inventory fixes, the launcher's full settings, and over 250 fixes.
This commit is contained in:
ruckus7382sfgsgdf
2026-11-25 10:21:32 -06:00
parent 861702476a
commit 4fa4f9188b
881 changed files with 179428 additions and 15581 deletions

View File

@@ -0,0 +1,36 @@
"""The movement and camera keys count as the player's input (host/nn_hid.c read_input), as the pads and the bound
Switch buttons do: the game menus' cursor hides again once they are used (host/display.c gm_cursor_shown).
python -I -B tests/test_keys_player_input.py
"""
import re
import unittest
from pathlib import Path
ROOT = Path(__file__).resolve().parents[1]
HID = (ROOT / "host" / "nn_hid.c").read_text(encoding="utf-8")
def function(source, signature):
start = source.index(signature)
end = source.index("{", start) + 1
depth = 1
while depth:
depth += (source[end] == "{") - (source[end] == "}")
end += 1
return source[start:end]
class KeysPlayerInputTests(unittest.TestCase):
def test_the_keys_stamp_the_players_input(self):
body = function(HID, "static void read_input(")
at = body.index("stick_max(stick, keys);")
self.assertRegex(body[at:], r"^stick_max\(stick, keys\);\s*if \(keys\[0\] \|\| keys\[1\] \|\| keys\[2\] \|\| keys\[3\]\) player_used\(\);")
def test_the_cursor_reads_that_stamp(self):
display = (ROOT / "host" / "display.c").read_text(encoding="utf-8")
self.assertIn("hos_player_input_ns() > InterlockedCompareExchange64(&gm_mouse_ns, 0, 0)", function(display, "static int gm_cursor_shown("))
if __name__ == "__main__":
unittest.main()