Skip to content

GB_random_set_enabled

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

Definition

void GB_random_set_enabled(bool enable);

In random.h

Description

When an emulator instance is initialized or reset, SameBoy will use randomness to initialize the contents of the various RAM regions with realistic data. If you wish to force a more deterministic initial state, call GB_random_set_enabled with false to disable this behavior.

Thread Safety

GB_random_set_enabled is thread-safe and can be called from any thread and context.

Notes

This setting is global and will affect all emulator instances in the process.

See Also

Clone this wiki locally