Fix fakematch per @Kermalis

This commit is contained in:
AnonymousRandomPerson
2024-10-28 20:35:04 -04:00
parent 5519b4d97a
commit 0a18379e39

View File

@@ -26,29 +26,19 @@ struct unkStruct_203B1FC
extern struct unkStruct_203B1FC *gUnknown_203B1FC;
// https://decomp.me/scratch/6BUMI - Seth
s32 sub_8015F44(void)
s32 sub_8015F44(void)
{
#ifndef NONMATCHING
register s32 index asm("r2");
#else
s32 index;
#endif
s32 counter;
index = 0;
if(index < gUnknown_203B1FC->unk1B)
{
if(gUnknown_203B1FC->unkF8[0] == '\0')
return index;
if (index < gUnknown_203B1FC->unk1B && gUnknown_203B1FC->unkF8[0] != 0) {
index = 1;
counter = 1;
while (1) {
if(counter >= gUnknown_203B1FC->unk1B)
while (TRUE) {
if (counter >= gUnknown_203B1FC->unk1B)
return index;
if(gUnknown_203B1FC->unkF8[counter] == '\0')
if (gUnknown_203B1FC->unkF8[counter] == 0)
return index;
index = counter + 1;
counter = index;