Rename `D_800A9EB0` to `nugfx_ucode`

This commit is contained in:
gijs 2023-10-20 17:04:12 +02:00
parent abe6017825
commit a330ca4ecb
3 changed files with 4 additions and 2 deletions

View File

@ -130,7 +130,6 @@ extern void* D_800B1828;
extern s32 D_800E8B14; extern s32 D_800E8B14;
extern s32 __SCREEN_IS_NOT_BLACK; extern s32 __SCREEN_IS_NOT_BLACK;
extern s32 D_800A9EB0;
extern s32 __SOMETHING_FRAMEBUFFERS; extern s32 __SOMETHING_FRAMEBUFFERS;
extern s32 D_A9EF0; extern s32 D_A9EF0;
extern s32 D_800C4B30; extern s32 D_800C4B30;

View File

@ -16,6 +16,7 @@ nuGfxSwapCfbFunc = 0x800A9E84;
nuGfxSwapCfb = 0x8008B110; nuGfxSwapCfb = 0x8008B110;
nuGfxZBuffer = 0x800C4B20; nuGfxZBuffer = 0x800C4B20;
nuGfxUcode = 0x800C4CE0; nuGfxUcode = 0x800C4CE0;
nugfx_ucode = 0x800A9EB0;
nuBoot = 0x8007F880; nuBoot = 0x8007F880;
nuScCreateScheduler = 0x80088C50; // rom:0x19050 nuScCreateScheduler = 0x80088C50; // rom:0x19050

View File

@ -2,6 +2,8 @@
#include "nu/nusys.h" #include "nu/nusys.h"
extern NUUcode nugfx_ucode;
/* 1A5B0 8008A1B0 */ /* 1A5B0 8008A1B0 */
void nuGfxInitEX2(void) { void nuGfxInitEX2(void) {
Gfx list[257]; Gfx list[257];
@ -11,7 +13,7 @@ void nuGfxInitEX2(void) {
nuGfxSetCfb(&__SOMETHING_FRAMEBUFFERS, NU_GFX_FRAMEBUFFER_NUM); nuGfxSetCfb(&__SOMETHING_FRAMEBUFFERS, NU_GFX_FRAMEBUFFER_NUM);
nuGfxSetZBuffer(NU_GFX_ZBUFFER_ADDR); nuGfxSetZBuffer(NU_GFX_ZBUFFER_ADDR);
nuGfxSwapCfbFuncSet(nuGfxSwapCfb); nuGfxSwapCfbFuncSet(nuGfxSwapCfb);
nuGfxUcode = &D_800A9EB0; nuGfxUcode = &nugfx_ucode;
nuGfxTaskMgrInit(); nuGfxTaskMgrInit();
gSPDisplayList(ptr++, &D_A9EF0); gSPDisplayList(ptr++, &D_A9EF0);