added field for checking rom loaded state.
This commit is contained in:
@@ -5,6 +5,7 @@ import rl "vendor:raylib"
|
|||||||
|
|
||||||
Simulator :: struct {
|
Simulator :: struct {
|
||||||
machine: ^emu.System,
|
machine: ^emu.System,
|
||||||
|
rom_loaded: bool,
|
||||||
running: bool,
|
running: bool,
|
||||||
paused: bool,
|
paused: bool,
|
||||||
cycles_per_second: int,
|
cycles_per_second: int,
|
||||||
@@ -15,8 +16,9 @@ Simulator :: struct {
|
|||||||
run_simulator :: proc(s: ^emu.System) {
|
run_simulator :: proc(s: ^emu.System) {
|
||||||
sim := Simulator {
|
sim := Simulator {
|
||||||
machine = s,
|
machine = s,
|
||||||
running = true,
|
rom_loaded = false,
|
||||||
paused = false,
|
running = false,
|
||||||
|
paused = true,
|
||||||
cycles_per_second = 12
|
cycles_per_second = 12
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user