added field for checking rom loaded state.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user