Skip to content

GB_set_rewind_length

Lior Halphon edited this page Nov 30, 2024 · 3 revisions

Definition

void GB_set_rewind_length(GB_gameboy_t *gb, double seconds);

In rewind.h

Description

Sets the time limit, in seconds, of the emulator instance's rewind buffer. Changing the buffer's length implicitly resets it.

In order for the debugger to support the backstep command, a non-zero rewind length is required.

Thread Safety

GB_set_rewind_length must not be called if the instance is being run in another thread, but may be called from the current one (via a callback).

See Also

Clone this wiki locally