Merge pull request #173 from BanjoRecomp/ui-callbacks

Run UI callbacks per frame.
This commit is contained in:
Darío
2026-01-25 21:21:05 -03:00
committed by GitHub
2 changed files with 19 additions and 1 deletions
+17
View File
@@ -0,0 +1,17 @@
#include "functions.h"
#include "patches.h"
#include "ui_funcs.h"
extern s32 D_802823AC;
extern f32 D_80282420;
extern f32 D_80282424;
// @recomp Patched to run a callback per frame in a function that always gets called by mainLoop().
RECOMP_PATCH void baMotor_80250C08(void) {
// @recomp Patched to run UI callbacks.
recomp_run_ui_callbacks();
if (D_802823AC != 0) {
D_80282424 = MIN(D_80282420, D_80282424 + time_getDelta());
}
}
+2 -1
View File
@@ -50,4 +50,5 @@ recomp_get_note_saving_enabled = 0x8F0000B4;
recomp_get_cutscene_aspect_ratio = 0x8F0000B8;
recomp_get_flying_and_swimming_inverted_axes = 0x8F0000BC;
recomp_get_first_person_inverted_axes = 0x8F0000C0;
recomp_get_analog_cam_sensitivity = 0x8F0000C4;
recomp_get_analog_cam_sensitivity = 0x8F0000C4;
recomp_run_ui_callbacks = 0x8F0000C8;