match loop body in func_801DD294

This commit is contained in:
Max 2020-10-31 11:31:27 -04:00
parent 6fcf5988b1
commit b65c4ed97a
2 changed files with 7 additions and 7 deletions

View File

@ -2,9 +2,9 @@
.section .sdata, "wa" # 0x8063D2C0 - 0x8063E8E0
.global lbl_8063D6F8
lbl_8063D6F8:
.incbin "baserom.dol", 0x471438, 0x70
.global lbl_8063D6FE
lbl_8063D6FE:
.incbin "baserom.dol", 0x471438, 0x6A
.global lbl_8063D768
lbl_8063D768:
.incbin "baserom.dol", 0x4714A8, 0x38

View File

@ -149,13 +149,13 @@ BOOL func_801DD294(gUnkClass4* p1, const char* fileName, s32)
// check if already open
if (func_801DCEB4(p1, fileName))
return TRUE;
// TODO: unroll this loop
gUnkClass6* r29 = p1->arr - 1;
gUnkClass6* r29;
size_t i;
for (i = 0; i < 8; i++) {
r29++;
r29 = p1->arr + i;
if (!p1->arr[i].unk0) {
r29 = &p1->arr[i];
r29 = p1->arr + i;
break;
}
}