Do that again, Emu

-

Emu can now record and replay keyboard and gamepad input. You can play through a tricky bit once, then use the recording to reproduce it.

For a replay to be useful, the machine needs to start where the original run did. Record from a fresh XEX load and close the Emu window when you’re done. On replay, Emu restores the RAM fill, random seed and joystick setup before feeding in the recorded inputs.

emu --joystick --record-input movement.x65input game.xex
emu --replay-input movement.x65input game.xex

Use the same XEX and Emu build for both. Replay stops on the last frame and prints its checksum. You can open the debugger right there.

If you’re turning a bug into a scripted test, Emu can wait for a byte in memory to reach the value you expect, then compare frame checksums. Loading a saved state now restores what was on screen, too.

Emu scripting and recording docs


Share: