Compare commits

...

1 Commits

Author SHA1 Message Date
coah
9e8618cb19 cleanup(eZiText): rename work unk_0x12D to pudCountAlt
Alternate pudCount swapped in during ZH getc paths (NonMatching zi8cgetc).
2026-10-02 14:20:13 -05:00
2 changed files with 4 additions and 4 deletions

View File

@@ -227,7 +227,7 @@ struct __zi8_work_data_s {
ziU16* unk_0x124[1];
ziU8* unk_0x128;
ziU8 unk_0x12C;
ziU8 unk_0x12D;
ziU8 pudCountAlt; // 0x12D
ziU8 unk_0x12E;
ziU8 unk_0x12F;
ziPtr unk_0x130[2];

View File

@@ -941,10 +941,10 @@ engine_search:
}
}
pud_search:
if (((struct __zi8_work_data_s*)work)->unk_0x12D) {
if (((struct __zi8_work_data_s*)work)->pudCountAlt) {
savedPudCount = ((struct __zi8_work_data_s*)work)->pudCount;
wordSearchPhase = 1;
((struct __zi8_work_data_s*)work)->pudCount = ((struct __zi8_work_data_s*)work)->unk_0x12D;
((struct __zi8_work_data_s*)work)->pudCount = ((struct __zi8_work_data_s*)work)->pudCountAlt;
}
pud_start:
if (((options->countOnly && getOptions != 5) || !wordLength || getMode == 5 ||
@@ -1328,7 +1328,7 @@ context_results_done:
wordLength = 0;
savedPudCount = ((struct __zi8_work_data_s*)work)->pudCount;
wordSearchPhase = 2;
((struct __zi8_work_data_s*)work)->pudCount = ((struct __zi8_work_data_s*)work)->unk_0x12D;
((struct __zi8_work_data_s*)work)->pudCount = ((struct __zi8_work_data_s*)work)->pudCountAlt;
goto pud_start;
}
dictionary_search: