Fixed compile errors in moa-console frontend

This commit is contained in:
transistor 2021-11-13 10:54:19 -08:00
parent 9d799e308d
commit d472b95d9d
3 changed files with 3 additions and 3 deletions

View File

@ -43,7 +43,7 @@ fn main() {
//cpu.decoder.dump_disassembly(&mut system, 0x100000, 0x2000);
//cpu.decoder.dump_disassembly(&mut system, 0x2ac, 0x200);
system.add_interruptable_device(wrap_transmutable(cpu)).unwrap();
system.add_interruptable_device("cpu", wrap_transmutable(cpu)).unwrap();
system.run_loop();
});

View File

@ -5,7 +5,7 @@ use moa::host::traits::{Host, WindowUpdater};
pub struct ConsoleFrontend;
impl Host for ConsoleFrontend {
fn add_window(&self, updater: Box<dyn WindowUpdater>) -> Result<(), Error> {
fn add_window(&mut self, updater: Box<dyn WindowUpdater>) -> Result<(), Error> {
println!("console: add_window() is not supported from the console; ignoring request...");
Ok(())
}

View File

@ -7,7 +7,7 @@ fn main() {
let matches = moa_minifb::new("Sega Genesis/Mega Drive Emulator")
.get_matches();
moa_minifb::run(matches, |frontends| {
moa_minifb::run(matches, |frontend| {
build_genesis(frontend)
});
}