mirror of
https://github.com/BanjoRecomp/BanjoRecomp
synced 2026-05-23 06:34:20 -04:00
Merge pull request #173 from BanjoRecomp/ui-callbacks
Run UI callbacks per frame.
This commit is contained in:
@@ -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
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user