-
-
Notifications
You must be signed in to change notification settings - Fork 212
GB_rewind_pop
Lior Halphon edited this page Nov 30, 2024
·
3 revisions
bool GB_rewind_pop(GB_gameboy_t *gb);
In rewind.h
Rewinds the emulator instance one frame backwards. Returns false
if the end of the rewind buffer was reached, and true
otherwise.
GB_rewind_pop
must not be called if the instance is being run in any thread, including the current one (via a callback).
Rewinding a frame will not re-render the popped frame or call the vblank callback. To obtain the audio-visual output of the rewound frame, call GB_rewind_pop
one more time, then run the emulator instance for a single frame (e.g. using GB_run_frame) to let the outputs render.