added field for checking rom loaded state.

This commit is contained in:
2026-06-13 09:31:17 +02:00
parent c3367cdf3e
commit d28aa8a401
+4 -2
View File
@@ -5,6 +5,7 @@ import rl "vendor:raylib"
Simulator :: struct {
machine: ^emu.System,
rom_loaded: bool,
running: bool,
paused: bool,
cycles_per_second: int,
@@ -15,8 +16,9 @@ Simulator :: struct {
run_simulator :: proc(s: ^emu.System) {
sim := Simulator {
machine = s,
running = true,
paused = false,
rom_loaded = false,
running = false,
paused = true,
cycles_per_second = 12
}