Compare commits

...

1 Commits

Author SHA1 Message Date
coah
ad929d1ce3 cleanup(eZiText): rename work unk_0x17EC to matchRetry
Guards Zi8MatchROMdata second-pass retry.
2026-10-02 14:09:33 -05:00
2 changed files with 4 additions and 4 deletions

View File

@@ -281,7 +281,7 @@ struct __zi8_work_data_s {
ziU8 unk_0x1768;
ziU8 unk_0x1769[0x81];
ziU16 unk_0x17EA;
ziU8 unk_0x17EC;
ziU8 matchRetry; // 0x17EC
ziU8 unk_0x17ED[3];
ziU8* dawgGroup; // 0x17F0
ziWChar unk_0x17F4[0x40]; // 0x17F4..0x1874

View File

@@ -305,9 +305,9 @@ ziU32 Zi8MatchROMdata(ziWChar* elements, ziU8 count, ziU8 language,
Zi8LogError(100, ZI_WORK);
} else {
if (status == 0) {
ZI_WORK->unk_0x17EC = 0;
ZI_WORK->matchRetry = 0;
ZI_WORK->dawgGroup = NextDawgGroup(0, language, ZI_WORK);
} else if (ZI_WORK->unk_0x17EC != 0) {
} else if (ZI_WORK->matchRetry != 0) {
Zi8LogError(100, ZI_WORK);
goto finish_match;
}
@@ -328,7 +328,7 @@ ziU32 Zi8MatchROMdata(ziWChar* elements, ziU8 count, ziU8 language,
}
if ((ziU8)result == 0 && status == 0 && mode == 1 && count == 1 && capacity >= 1) {
mode = 0;
ZI_WORK->unk_0x17EC = 1;
ZI_WORK->matchRetry = 1;
if (tableSize != 0) {
ZI_WORK->dawgGroup = NextDawgGroup(0, language, ZI_WORK);
while (ZI_WORK->dawgGroup != 0) {