#!/bin/sh # Re-record the six milestone-1 MAME traces, then replay each with the branch's board. M=/data/emu/megadrive-python WT=/tmp/claude-1000/-data-emu/f01e3d78-d1b6-4bc9-9d25-60eb66f86a2e/scratchpad/wt OUT=$M/reference/lockstep-2026-09-28 cd $M for pair in "sonic:Sonic The Hedgehog (USA, Europe)" "sor2:Streets of Rage 2 (USA)" "gunstar:Gunstar Heroes (USA)" \ "castlevania:Castlevania - Bloodlines (USA)" "sonic3:Sonic The Hedgehog 3 (USA)" "pstar4:Phantasy Star IV (USA)"; do name=${pair%%:*}; game=${pair#*:} (nice -n 10 .venv/bin/python scripts/mame_trace.py genesis "/data/emu/roms/megadrive/$game.zip" --seconds 30 --out tests/mame_traces/genesis-$name > $OUT/rec-$name.log 2>&1 cd $WT && nice -n 10 $M/.venv-pypy/bin/python scripts/lockstep_mame.py $M/tests/mame_traces/genesis-$name > $OUT/lockstep-$name.txt 2>&1 echo "exit $?" >> $OUT/lockstep-$name.txt) & done wait date > $OUT/finished