1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-07-14 20:05:02 +00:00

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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 164 additions and 375 deletions

View file

@ -158,8 +158,8 @@ void GameState_Draw(GameState* gameState, GraphicsContext* gfxCtx) {
Gfx* newDList;
Gfx* polyOpaP;
Gfx* dispRefs[5];
char pad[0x10];
GfxPrint printChars[2];
char pad[0x8];
GfxPrint printChars;
Graph_OpenDisps(dispRefs, gfxCtx, "../game.c", 746);
newDList = Graph_GfxPlusOne(polyOpaP = gfxCtx->polyOpa.p);
@ -175,11 +175,11 @@ void GameState_Draw(GameState* gameState, GraphicsContext* gfxCtx) {
}
if (R_ENABLE_AUDIO_DBG & 1) {
GfxPrint_Ctor(printChars);
GfxPrint_Open(printChars, newDList);
func_800EEA50(printChars);
newDList = GfxPrint_Close(printChars);
GfxPrint_Dtor(printChars);
GfxPrint_Ctor(&printChars);
GfxPrint_Open(&printChars, newDList);
func_800EEA50(&printChars);
newDList = GfxPrint_Close(&printChars);
GfxPrint_Dtor(&printChars);
}
if (R_ENABLE_ARENA_DBG < 0) {