mirror of
https://github.com/bryanthaboi/gen1recomp
synced 2026-10-01 15:41:29 -04:00
a5014826cd
The wave-3 tint batch as its own commit, so the harness fold before it stays reviewable on its own. multichoice.lua: Multichoice.COUNTS is the live option-count source for the cart - 65 of 65 entries match pret's src/script_menu.c, where ScriptMenu_MultichoiceGrid reads sMultichoiceLists[id].list and .count (:915-930). The table is load-bearing in a ROM-less run: with no import cache present there is nothing else to ask how many options a list has. adapters.lua: the multichoice operand reader no longer treats row[4] as an option count. pret asm/macros/event.inc:893-899 lays the command out as x, y, multichoiceId, ignoreBPress - four bytes and no count field - so the old read shifted the operand stream and every later decode in the command went wrong with it. tests/game3_photo_tint_boundary_test.lua: pins the cache-miss arity fallback and the yield behaviour it rests on, which is the BUG2 root cause. Run twice green; the existing tint suite still passes 33/33 alongside it.