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

@@ -30,6 +30,7 @@ HOS_H = r"""
extern uint8_t *fake_heap;
#define HOS_HEAP_BASE 0x1000000000ULL
#define GP(a) ((void *)(fake_heap + ((uint64_t)(a) - HOS_HEAP_BASE)))
#define HOS_GUEST_SPACE (1ULL << 39)
extern uint64_t hos_heap_size;
void hos_log(const char *fmt, ...);
int64_t hos_now_ns(void);
@@ -54,6 +55,13 @@ static int captured = 1, menu_invert, menu_native = 1;
int rx_option(int id, int otherwise) { return id == 8 ? menu_invert : id == 6 ? menu_native : otherwise; }
int hos_mouse_take(int32_t *dx, int32_t *dy) { *dx = move_x, *dy = move_y; move_x = move_y = 0; return captured; }
void hos_mouse_give_back(int32_t dx, int32_t dy) { move_x += dx, move_y += dy; }
/* ((Triforce) an input recording's hooks, host/input_movie.c: nothing recorded or played here; no script's mouse motion) */
#include "input_movie.h"
int hos_script_mouse_take(int32_t *dx, int32_t *dy) { *dx = *dy = 0; return 0; }
int hos_input_movie_active(void) { return 0; }
int hos_input_movie_cam_begin(MovieCam *c, uint32_t *block, uint32_t *inputs) { (void)c, (void)block, (void)inputs; return -1; }
void hos_input_movie_cam_end(const MovieCam *c) { (void)c; }
double hos_mouse_sensitivity(void) { return hos_mouse_sens; }
int hos_mouse_native(void);
void hos_mouse_native_free(int free);
void hos_mouse_native_stick(int held);
@@ -191,6 +199,7 @@ class MouseNativeTests(unittest.TestCase):
(tmp / "hos.h").write_text(HOS_H, encoding="utf-8")
# (beside the stand-in hos.h, so its #include "hos.h" finds that one)
shutil.copy(ROOT / "host" / "mouse_native.c", tmp / "mouse_native.c")
shutil.copy(ROOT / "host" / "input_movie.h", tmp / "input_movie.h") # ((Triforce) MovieCam, the recording's camera lines)
(tmp / "t.c").write_text(FIXTURE, encoding="utf-8")
binary = tmp / "t"
build = subprocess.run([compiler, "-std=gnu11", "-Wall", "-O1", "-g", "-I", str(tmp), "-I", str(ROOT / "host" / "posix"),