4 GB_random_set_enabled
Lior Halphon edited this page 2024-12-01 01:09:32 +02:00

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