SEL func_801AD490 decompile

This commit is contained in:
Luciano Ciccariello 2023-01-24 20:30:15 +00:00
parent 46bf1ae31a
commit dd497abf29
2 changed files with 29 additions and 1 deletions

View File

@ -1,6 +1,30 @@
#include "sel.h"
INCLUDE_ASM("config/../asm/st/sel/nonmatchings/2D490", func_801AD490);
extern const char D_801A76D8[];
extern const char D_801A76E0[];
extern const char D_801A76E8[];
// #ifndef NON_MATCHING
// INCLUDE_ASM("config/../asm/st/sel/nonmatchings/2D490", func_801AD490);
// #else
void func_801AD490(void) {
s32 i;
func_801AD260(4);
func_801B2AFC(D_801803A8, 0x34, 0xBC, 1);
func_801B2AFC(D_801803AC, 0x34, 0xCC, 1);
func_801B29C0(D_801A76D8, 0xF0, 0x20, 1);
func_801B29C0(D_801A76E0, 0x100, 0x30, 1);
func_801B29C0(D_801A76E8, 0xE8, 0x40, 1);
for (i = 0; i < 5; i++) {
POLY_GT4* temp_v0 = &D_80086FEC[D_801BAF18[i + 1].unk0];
if (i == D_801D6B0C) {
temp_v0->clut = 0x203;
} else {
temp_v0->clut = 0x200;
}
}
}
// #endif
void func_801AD590(void) {
if (D_80097494 & 0x6000) {

View File

@ -15,7 +15,9 @@ void TestCollisions(void);
void func_801ACBE4(s32 arg0, u16 arg1);
void func_801AD1D0(void);
void func_801AD218(void);
void func_801AD260(u32);
void func_801B2670(POLY_GT4* poly, s32 x, s32 y, s32 width, s32 height);
void func_801B29C0(const char* str, s32 x, s32 y, s32 arg3);
void func_801B2AFC(u8* imgs, s32 x, s32 y, s32 tge);
void func_801B9C80(void);
void InitRoomEntities(s32 objLayoutId);
@ -94,6 +96,8 @@ typedef struct {
extern u8* D_80180128[];
extern u8* D_8018012C[];
extern u8* D_801803A8;
extern u8* D_801803AC;
extern u8* D_801803BC;
extern u8* D_801803C0;
extern u8* D_801803C4; // images