remove fake global gUnk_02022130

part of gBG1Buffer
This commit is contained in:
Henny022p 2023-01-04 12:28:49 +01:00
parent 08de04a87b
commit a37c482850
2 changed files with 2 additions and 4 deletions

View File

@ -56,7 +56,6 @@ SECTIONS {
. = 0x00021F00; gUnk_02021F00 = .;
. = 0x00021F20; gUnk_02021F20 = .;
. = 0x00021F30; gBG1Buffer = .;
. = 0x00022130; gUnk_02022130 = .;
. = 0x00022730; gVBlankDMA = .;
. = 0x00022740; gFuseInfo = .;
. = 0x00022750; gPlayerScriptExecutionContext = .;

View File

@ -97,11 +97,10 @@ void sub_080A6FB4(u32 param_1, u32 param_2) {
void sub_080A7040(u32 param_1) {
extern Font gUnk_08129004;
extern u8 gUnk_02022130[];
if (gGenericMenu.unk2e.HWORD != param_1) {
gGenericMenu.unk2e.HWORD = param_1;
MemClear(gUnk_02022130, 0x300);
MemCopy(gUnk_02022130 - 0x200, (void*)0x600e000, 0x800);
MemClear(&gBG1Buffer[0x100], 0x300);
MemCopy(gBG1Buffer, (void*)0x600e000, 0x800);
if (GetInventoryValue(gUnk_08128D70[param_1].item) != 0) {
ShowTextBox(gUnk_08128D70[param_1].textIndex, &gUnk_08129004);
}