Merge pull request #395 from hatal175/color

Decompile some color ASM_FUNC
This commit is contained in:
notyourav
2022-02-18 11:48:13 -08:00
committed by GitHub
9 changed files with 231 additions and 470 deletions
+24 -1
View File
@@ -4,12 +4,35 @@
#include "global.h"
typedef struct {
u8 _0;
u8 _0_0 : 4;
u8 _0_4 : 4;
u8 _1;
u16 _2;
} Palette;
extern Palette gPaletteList[];
typedef struct {
struct {
u8 unk0 : 1;
u8 unk1 : 1;
u8 unk2 : 1;
u8 unk3 : 1;
u8 unk4 : 4;
} PACKED unk_00;
u8 unk_01;
u16 unk_02;
union SplitWord unk_04;
union SplitWord unk_08;
union SplitWord unk_0C;
} struct_gUnk_020000C0_1;
typedef struct {
struct_gUnk_020000C0_1 unk_00[4];
} struct_gUnk_020000C0;
static_assert(sizeof(struct_gUnk_020000C0) == 0x40);
extern struct_gUnk_020000C0 gUnk_020000C0[0x30];
void ResetPaletteTable(u32 a1);
void sub_0801D000(u32 a1);
u32 LoadObjPalette(struct Entity_*, u32);