From 331498e14cdf2ee4e3345d7586fcf7e8d39ad95f Mon Sep 17 00:00:00 2001 From: Killklli <11064610+Killklli@users.noreply.github.com> Date: Wed, 31 Dec 2025 12:44:21 -0500 Subject: [PATCH] Fix callbacks --- patches/main.c | 5 ++++- patches/patches.h | 5 +++++ patches/syms.ld | 3 ++- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/patches/main.c b/patches/main.c index bcd15d7..3f9dcaf 100644 --- a/patches/main.c +++ b/patches/main.c @@ -1,11 +1,14 @@ #include "patches.h" +#include "ui_funcs.h" // @recomp Patched to enable RT64's extended GBI mode and set the correct refresh rate. RECOMP_PATCH void func_800012FC_1EFC() { if ((D_8008CCC0_8D8C0.controllers[0].button_held_down & L_TRIG) && (D_8008CCC0_8D8C0.controllers[0].button_held_down & Z_TRIG) && (D_8008CCC0_8D8C0.controllers[0].button_held_down & R_JPAD)) { D_8008CCC0_8D8C0.mode = 10; } - + // @recomp Run Ui Callbacks + recomp_run_ui_callbacks(); + gEXEnable(D_8015C5CC_15D1CC++); // gEXSetRDRAMExtended(D_8015C5CC_15D1CC++, 1); diff --git a/patches/patches.h b/patches/patches.h index 0a454bf..9404642 100644 --- a/patches/patches.h +++ b/patches/patches.h @@ -39,6 +39,11 @@ #include "functions.h" #include "variables.h" +#define true 1 +#define false 0 + +typedef _Bool bool; + static inline void* memcpy(void* s1, const void* s2, size_t n) { char* su1 = (char*)s1; const char* su2 = (const char*)s2; diff --git a/patches/syms.ld b/patches/syms.ld index 9fc1bc6..e4f6ec8 100644 --- a/patches/syms.ld +++ b/patches/syms.ld @@ -31,4 +31,5 @@ osViSwapBuffer_recomp = 0x8F000068; osWritebackDCacheAll_recomp = 0x8F00006C; sprintf_recomp = 0x8F000070; recomp_puts = 0x8F000074; -recomp_exit = 0x8F000078; \ No newline at end of file +recomp_exit = 0x8F000078; +recomp_run_ui_callbacks = 0x8F0000B8; \ No newline at end of file