diff --git a/include/common.h b/include/common.h index 9cebada..b660c66 100644 --- a/include/common.h +++ b/include/common.h @@ -167,7 +167,6 @@ extern OSContPad __GLOBAL_CONTROLLER_DATA_COPY[MAXCONTROLLERS]; extern u8 D_800AA040; extern void (*SWAP_BUFFER_FUNC_800A9E8C)(void** buffers); -extern void (*D_800AA094)(); extern s32 D_800E79A4; extern u8 SP_THREAD_800BE1C0[1]; extern OSThread THREAD_800BE1C0; diff --git a/linker_scripts/symbols/addr.txt b/linker_scripts/symbols/addr.txt index 4f6548d..946ca6f 100644 --- a/linker_scripts/symbols/addr.txt +++ b/linker_scripts/symbols/addr.txt @@ -9,6 +9,7 @@ nuGfxCfb_ptr = 0x800E8210; nuGfxMesgQ = 0x800C4C28; nuGfxMesgBuf = 0x800BE1A0; nuGfxFunc = 0x800AA090; +nuGfxPreNMIFunc = 0x800AA094; nuBoot = 0x8007F880; nuScCreateScheduler = 0x80088C50; // rom:0x19050 diff --git a/src/_ob_grumpy_island.c b/src/_ob_grumpy_island.c index ea17483..fde9d4c 100644 --- a/src/_ob_grumpy_island.c +++ b/src/_ob_grumpy_island.c @@ -23,8 +23,8 @@ void gfxThread(void* arg0) { break; case NU_SC_PRENMI_MSG: - if(D_800AA094 != NULL) { - D_800AA094(); + if(nuGfxPreNMIFunc != NULL) { + nuGfxPreNMIFunc(); } break; }