3 GB_set_rewind_length
Lior Halphon edited this page 2024-12-01 01:09:32 +02:00

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