Decompile flg_set.c (#200)

* Decompile flg_set.c

* Use a for loop and rename func_8002AAB0

* move the flag set array inside the function
This commit is contained in:
Random
2020-06-10 00:14:18 +02:00
committed by GitHub
parent a0ef48e987
commit a76356090b
11 changed files with 164 additions and 375 deletions
+1 -1
View File
@@ -285,7 +285,7 @@ void func_8002A6B8(GlobalContext* globalCtx, Vec3f* pos, Vec3f* arg2, Vec3f* arg
// ? func_8002A95C(?);
// ? func_8002A9F4(?);
// ? func_8002AA44(?);
// ? func_8002AAB0(?);
void FlagSet_Update(GlobalContext* globalCtx);
void Overlay_LoadGameState(GameStateOverlay* overlayEntry);
void Overlay_FreeGameState(GameStateOverlay* overlayEntry);
void ActorShape_Init(ActorShape* shape, f32 arg1, void* shadowDrawFunc, f32 arg3);
-5
View File
@@ -175,10 +175,6 @@ extern u8 D_80114930[];
//extern ? D_801159A9;
//extern ? D_801159AA;
extern EffectSsOverlay gEffectSsOverlayTable[37];
//extern ? D_80115DC0;
//extern ? D_80115F68;
//extern ? D_80115F6C;
//extern ? D_80115F70;
extern Gfx D_80116280[];
extern ActorOverlay gActorOverlayTable[471]; // original name: "actor_dlftbls" 801162A0
extern s32 gMaxActorId; // original name: "MaxProfile"
@@ -3276,7 +3272,6 @@ extern u8 D_80155F50[];
extern u8 D_80157580[];
extern u8 D_801579A0[];
extern u8 D_80157D30[];
//extern ? D_8015BB90;
//extern ? D_8015BC30;
//extern ? D_8015BC3C;
//extern ? D_8015BC48;
+7 -1
View File
@@ -1453,7 +1453,8 @@ typedef struct GfxPrint {
/* 0x0E */ u8 baseY;
/* 0x0F */ u8 flag;
/* 0x10 */ Color_RGBA8 color;
} GfxPrint;
/* 0x14 */ char unk_14[0x1C]; // unused
} GfxPrint; // size = 0x30
typedef enum {
GFXPRINT_FLAG1 = 1,
@@ -1938,4 +1939,9 @@ typedef struct {
/* 0x0E */ char game_name[16];
} OSPfsState; // size = 0x20
typedef struct {
/* 0x00 */ u16* value;
/* 0x04 */ const char* name;
} FlagSetEntry; // size = 0x08
#endif