diff --git a/include/common.h b/include/common.h index d5a5563..2e957ec 100644 --- a/include/common.h +++ b/include/common.h @@ -130,7 +130,6 @@ extern void* D_800B1828; extern s32 D_800E8B14; extern s32 __SCREEN_IS_NOT_BLACK; -extern s32 __SOMETHING_FRAMEBUFFERS; extern s32 D_A9EF0; extern s32 D_800C4B30; diff --git a/linker_scripts/symbols/addr.txt b/linker_scripts/symbols/addr.txt index a7dd365..6cb2eea 100644 --- a/linker_scripts/symbols/addr.txt +++ b/linker_scripts/symbols/addr.txt @@ -17,6 +17,7 @@ nuGfxSwapCfb = 0x8008B110; nuGfxZBuffer = 0x800C4B20; nuGfxUcode = 0x800C4CE0; nugfx_ucode = 0x800A9EB0; +FrameBuf = 0x800A9EE0; // rom:0x3A2E0 size:0xC nuBoot = 0x8007F880; nuScCreateScheduler = 0x80088C50; // rom:0x19050 @@ -247,7 +248,6 @@ DISPLAY_LIST_801B3618 = 0x801B3618; // rom:0x100658 LIGHTS_801869A0 = 0x801869A0; // rom:0x5C8A0 size:40 -__SOMETHING_FRAMEBUFFERS = 0x800A9EE0; // rom:0x3A2E0 size:0xC __SOMETHING_WITH_GFX = 0x800E9BE0; // size:0x18 diff --git a/src/_ob_unusual_spiders.c b/src/_ob_unusual_spiders.c index 4268f75..bbf1346 100644 --- a/src/_ob_unusual_spiders.c +++ b/src/_ob_unusual_spiders.c @@ -2,6 +2,7 @@ #include "nu/nusys.h" +extern u16* FrameBuf[3]; extern NUUcode nugfx_ucode; /* 1A5B0 8008A1B0 */ @@ -10,7 +11,7 @@ void nuGfxInitEX2(void) { Gfx* ptr = list; nuGfxThreadStart(); - nuGfxSetCfb(&__SOMETHING_FRAMEBUFFERS, NU_GFX_FRAMEBUFFER_NUM); + nuGfxSetCfb(FrameBuf, NU_GFX_FRAMEBUFFER_NUM); nuGfxSetZBuffer(NU_GFX_ZBUFFER_ADDR); nuGfxSwapCfbFuncSet(nuGfxSwapCfb); nuGfxUcode = &nugfx_ucode;