Rename `func_80089C50` to `nuGfxDisplayOn` and move it into it's own C file

This commit is contained in:
gijs 2023-10-20 17:48:01 +02:00
parent 73120a55ab
commit 094f68127e
4 changed files with 10 additions and 7 deletions

View File

@ -52,6 +52,7 @@ nuGfxTaskAllEndWait = 0x80089A10;
nuGfxTaskMgr = 0x80089540; nuGfxTaskMgr = 0x80089540;
nuGfxFuncSet = 0x80089990; nuGfxFuncSet = 0x80089990;
nuGfxDisplayOff = 0x80089BC0; nuGfxDisplayOff = 0x80089BC0;
nuGfxDisplayOn = 0x80089C50;
obCurrentTime = 0x800C47D0; obCurrentTime = 0x800C47D0;

View File

@ -120,7 +120,8 @@ segments:
- [0x19E30, c, "nu/nugfxretracewait"] - [0x19E30, c, "nu/nugfxretracewait"]
- [0x19EB0, c, "nu/nugfxsetcfb"] - [0x19EB0, c, "nu/nugfxsetcfb"]
- [0x19FC0, c, "nu/nugfxdisplayoff"] - [0x19FC0, c, "nu/nugfxdisplayoff"]
- [0x1A050, c, "_ob_icy_coast"] - [0x1A050, c, "nu/nugfxdisplayon"]
- [0x1A060, c, "_ob_icy_coast"]
- [0x1A4F0, c, "rom_copy"] - [0x1A4F0, c, "rom_copy"]
- [0x1A5B0, c, "_ob_unusual_spiders"] - [0x1A5B0, c, "_ob_unusual_spiders"]
- [0x1A660, c, "_ob_prized_reading"] - [0x1A660, c, "_ob_prized_reading"]

View File

@ -1,11 +1,5 @@
#include "common.h" #include "common.h"
#include "nu/nusys.h"
void func_80089C50(void) {
nuGfxDisplay = NU_GFX_DISPLAY_ON_TRIGGER;
}
/* 1A060 80089C60 */ /* 1A060 80089C60 */
u8 obControllerInit(void) { u8 obControllerInit(void) {
u8 pattern; u8 pattern;

7
src/nu/nugfxdisplayon.c Normal file
View File

@ -0,0 +1,7 @@
#include "common.h"
#include "nu/nusys.h"
void nuGfxDisplayOn(void) {
nuGfxDisplay = NU_GFX_DISPLAY_ON_TRIGGER;
}