Discovered `obPtrPtrDisplayList`

This commit is contained in:
gijs 2023-09-27 00:49:40 +02:00
parent 253726d9f9
commit 2861309bd6
4 changed files with 29 additions and 1 deletions

View File

@ -560,6 +560,7 @@ extern u8 item_get_field_0x9(u16 arg0);
extern void func_80179354(); extern void func_80179354();
extern Gfx* obPtrDisplayList; extern Gfx* obPtrDisplayList;
extern Gfx** obPtrPtrDisplayList;
extern Gfx DISPLAY_LIST_80186BD0[]; extern Gfx DISPLAY_LIST_80186BD0[];
extern Gfx DISPLAY_LIST_80186D90[]; extern Gfx DISPLAY_LIST_80186D90[];

View File

@ -72,6 +72,9 @@ VTX_801FD2A8 = 0x801FD2A8; // rom:0x14E488
VTX_8021EF08 = 0x8021EF08; // rom:0x16FF48 VTX_8021EF08 = 0x8021EF08; // rom:0x16FF48
obPtrDisplayList = 0x800E9BA0; obPtrDisplayList = 0x800E9BA0;
obPtrPtrDisplayList = 0x800B17B0;
__set_obPtrPtrDisplayList = 0x80080280; // rom:0x10680
obVpMinResolution = 0x80186310; // rom:0x5C210 obVpMinResolution = 0x80186310; // rom:0x5C210
obVpMaxResolution = 0x80186320; // rom:0x5C220 obVpMaxResolution = 0x80186320; // rom:0x5C220

View File

@ -79,7 +79,7 @@ segments:
- [0x10590, asm] - [0x10590, asm]
- [0x105D0, asm] - [0x105D0, asm]
- [0x10610, asm] - [0x10610, asm]
- [0x10680, asm] - [0x10680, c, "_ob_shrill_snail"]
- [0x10CF0, c, "_ob_soft_coach"] - [0x10CF0, c, "_ob_soft_coach"]
- [0x10D70, asm] - [0x10D70, asm]
- [0x10E70, asm] - [0x10E70, asm]

24
src/_ob_shrill_snail.c Normal file
View File

@ -0,0 +1,24 @@
#include "common.h"
// INCLUDE_ASM(const s32, "_ob_shrill_snail", func_80080280);
/* 10680 80080280 */
void __set_obPtrPtrDisplayList(Gfx **displayList) {
obPtrPtrDisplayList = displayList;
}
INCLUDE_ASM(const s32, "_ob_shrill_snail", func_8008028C);
INCLUDE_ASM(const s32, "_ob_shrill_snail", func_80080304);
INCLUDE_ASM(const s32, "_ob_shrill_snail", func_8008038C);
INCLUDE_ASM(const s32, "_ob_shrill_snail", func_800803B8);
INCLUDE_ASM(const s32, "_ob_shrill_snail", func_80080768);
INCLUDE_ASM(const s32, "_ob_shrill_snail", func_80080798);
INCLUDE_ASM(const s32, "_ob_shrill_snail", func_800807DC);
INCLUDE_ASM(const s32, "_ob_shrill_snail", func_80080894);