[Fix] Dodongo boss battle crashing with only mq otr (#2020)

Co-authored-by: briaguya <briaguya>
This commit is contained in:
briaguya 2022-11-26 02:19:33 -05:00 committed by GitHub
parent b843937b34
commit 1bf5fb64a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -118,7 +118,10 @@ void func_808C12C4(u8* arg1, s16 arg2) {
} }
void func_808C1554(void* arg0, void* floorTex, s32 arg2, f32 arg3) { void func_808C1554(void* arg0, void* floorTex, s32 arg2, f32 arg3) {
arg0 = ResourceMgr_LoadTexByName(arg0); // Entering the King Dodongo boss battle was crashing when using only an mq otr
// because it was trying to load a texture from a non-mq path
// HACK: LoadTexByName doesn't account for mq vs non-mq paths, LoadTexOrDListByName does.
arg0 = ResourceMgr_LoadTexOrDListByName(arg0);
floorTex = ResourceMgr_LoadTexByName(floorTex); floorTex = ResourceMgr_LoadTexByName(floorTex);
u16* temp_s3 = SEGMENTED_TO_VIRTUAL(arg0); u16* temp_s3 = SEGMENTED_TO_VIRTUAL(arg0);