fox32: Show a slightly more friendly error if fox32.rom doesn't exist
This commit is contained in:
parent
9ff6ed608a
commit
601874a6e4
|
@ -212,7 +212,7 @@ fn main() {
|
||||||
let mut cpu = {
|
let mut cpu = {
|
||||||
let cpu_shared_memory = Arc::clone(&shared_memory);
|
let cpu_shared_memory = Arc::clone(&shared_memory);
|
||||||
let cpu_overlays = Arc::clone(&display.overlays);
|
let cpu_overlays = Arc::clone(&display.overlays);
|
||||||
let cpu_read_only_memory = read("fox32.rom").unwrap();
|
let cpu_read_only_memory = read("fox32.rom").expect("fox32.rom not found!");
|
||||||
// 32 MiB of CPU-only memory
|
// 32 MiB of CPU-only memory
|
||||||
let memory = Memory::new(0x02000000, cpu_shared_memory, cpu_overlays, cpu_read_only_memory);
|
let memory = Memory::new(0x02000000, cpu_shared_memory, cpu_overlays, cpu_read_only_memory);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user