mirror of
https://github.com/zeldaret/oot.git
synced 2025-07-18 05:44:53 +00:00
Fix reloc data used for some actors and Match Bg_Spot01_Idohashira (#327)
This commit is contained in:
parent
f11a74d41d
commit
3dc3722570
7 changed files with 18 additions and 136 deletions
|
@ -322,25 +322,21 @@ void BgSpot01Idohashira_Init(Actor* thisx, GlobalContext* globalCtx) {
|
|||
}
|
||||
}
|
||||
|
||||
#ifdef NON_MATCHING
|
||||
// regalloc differences
|
||||
void func_808AB700(BgSpot01Idohashira* this, GlobalContext* globalCtx) {
|
||||
GraphicsContext* gfxCtx = globalCtx->state.gfxCtx;
|
||||
Gfx* dispRefs[5];
|
||||
GraphicsContext* localGfxCtx = globalCtx->state.gfxCtx;
|
||||
GraphicsContext* gfxCtx = localGfxCtx;
|
||||
Gfx* dispRefs[4];
|
||||
|
||||
Graph_OpenDisps(dispRefs, gfxCtx, "../z_bg_spot01_idohashira.c", 689);
|
||||
func_80093D18(gfxCtx);
|
||||
Graph_OpenDisps(dispRefs, localGfxCtx, "../z_bg_spot01_idohashira.c", 689);
|
||||
func_80093D18(localGfxCtx);
|
||||
|
||||
gSPMatrix(gfxCtx->polyOpa.p++, Matrix_NewMtx(gfxCtx, "../z_bg_spot01_idohashira.c", 699),
|
||||
gSPMatrix(gfxCtx->polyOpa.p++, Matrix_NewMtx(localGfxCtx, "../z_bg_spot01_idohashira.c", 699),
|
||||
G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
|
||||
func_808AAF34(this, globalCtx);
|
||||
gSPDisplayList(gfxCtx->polyOpa.p++, D_06000420);
|
||||
|
||||
Graph_CloseDisps(dispRefs, gfxCtx, "../z_bg_spot01_idohashira.c", 708);
|
||||
Graph_CloseDisps(dispRefs, localGfxCtx, "../z_bg_spot01_idohashira.c", 708);
|
||||
}
|
||||
#else
|
||||
#pragma GLOBAL_ASM("asm/non_matchings/overlays/actors/ovl_Bg_Spot01_Idohashira/func_808AB700.s")
|
||||
#endif
|
||||
|
||||
void BgSpot01Idohashira_Draw(Actor* thisx, GlobalContext* globalCtx) {
|
||||
BgSpot01Idohashira* this = THIS;
|
||||
|
|
|
@ -127,20 +127,18 @@ void BgZg_Init(Actor* thisx, GlobalContext* globalCtx) {
|
|||
}
|
||||
|
||||
void func_808C0EEC(BgZg* this, GlobalContext* globalCtx) {
|
||||
GraphicsContext* gfxCtx;
|
||||
GraphicsContext* tempgfxCtx; // oddly needs this to match
|
||||
GraphicsContext* localGfxCtx = globalCtx->state.gfxCtx;
|
||||
GraphicsContext* gfxCtx = localGfxCtx;
|
||||
Gfx* dispRefs[4];
|
||||
|
||||
tempgfxCtx = globalCtx->state.gfxCtx;
|
||||
gfxCtx = tempgfxCtx;
|
||||
Graph_OpenDisps(dispRefs, gfxCtx, "../z_bg_zg.c", 311);
|
||||
Graph_OpenDisps(dispRefs, localGfxCtx, "../z_bg_zg.c", 311);
|
||||
|
||||
func_80093D18(gfxCtx);
|
||||
gSPMatrix(gfxCtx->polyOpa.p++, Matrix_NewMtx(gfxCtx, "../z_bg_zg.c", 315),
|
||||
func_80093D18(localGfxCtx);
|
||||
gSPMatrix(gfxCtx->polyOpa.p++, Matrix_NewMtx(localGfxCtx, "../z_bg_zg.c", 315),
|
||||
G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
|
||||
|
||||
gSPDisplayList(gfxCtx->polyOpa.p++, D_06001080);
|
||||
Graph_CloseDisps(dispRefs, gfxCtx, "../z_bg_zg.c", 320);
|
||||
|
||||
Graph_CloseDisps(dispRefs, localGfxCtx, "../z_bg_zg.c", 320);
|
||||
}
|
||||
|
||||
void BgZg_Draw(Actor* thisx, GlobalContext* globalCtx) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue