# Generic boot sequence for mgba_dump: clears the intro/title screen, selects
# CONTINUE, and mashes through the "quest log" recap pages a real save shows
# on load (see CLAUDE.md's testing notes - this needs a LOT of A presses,
# one per recap page, before the player actually regains field control).
# Deliberately generous (more presses than most saves need) - extra A presses
# once already on the field are usually harmless (swallowed by the field/
# dialogue system), a real risk only if the player happens to be facing an
# NPC at their save point. Verified end-to-end against a FireRed .srm
# (2026-09-22): reaches the field with the real save's party+bag intact by
# frame ~850. If a capture for some other save/hack comes out still on a
# menu (check partyCount in the dumped struct, or `dump` more than once and
# diff), copy this file, add more `wait/press A` pairs, and pass it via
# --script to capture_fixture_headless.sh.
wait 120
press START
wait 30
press A
wait 60
press A
wait 30
press A
wait 30
press A
wait 30
press A
wait 30
press A
wait 30
press A
wait 30
press A
wait 30
press A
wait 30
press A
wait 30
press A
wait 30
press A
wait 30
press A
wait 30
press A
wait 30
press A
wait 30
press A
wait 30
press A
wait 30
press A
wait 30
press A
wait 60
# Mission Log states for every kind (docs/plans/missions-tab.md): vars 0x5000+ at 0x0203B374, flags 0x900+ at 0x0203B174
# story 20 (Dresco Gym), West Borrius Pokedex active, Neighbourly Assistance done, Honey Gather reward, Portal Purge
# (Suicune flag 0x15DD) and Am I Blind? (flag 0x1550) checklists, Leg Day (steps), Major Miner 3/4, A Life of No Regrets
# 1000 coins, Seasonal Research stage 2, Sweet Pie done + Juicy Pie active (one var)
poke16 0x203B396 20
poke16 0x203B418 1
poke16 0x203B41C 3
poke16 0x203B3AC 2
poke16 0x203B4C2 1
poke16 0x203B402 1
poke16 0x203B404 1
poke16 0x203B408 3
poke16 0x203B414 1
poke16 0x203B4DA 1000
poke16 0x203B476 2
poke16 0x203B470 4
poke8 0x203B30F 0x20
poke8 0x203B2FE 0x01
wait 10
