mirror of
https://github.com/transistorfet/moa.git
synced 2025-08-07 20:25:11 +00:00
Fixed compile errors in moa-console frontend
This commit is contained in:
@@ -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();
|
||||
});
|
||||
|
@@ -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(())
|
||||
}
|
||||
|
@@ -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)
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user