plat: minifb: Remove junk code

Former-commit-id: ca265f5824a2b0014b81fc0d7ecd18f2bbdc18b0
This commit is contained in:
Michel Heily 2019-12-30 00:28:32 +02:00
parent ab731679ef
commit 1a5903c09c

View file

@ -1,5 +1,3 @@
extern crate sdl2;
use std::cell::RefCell;
use std::rc::Rc;
@ -86,7 +84,6 @@ fn main() {
let skip_bios = matches.occurrences_of("skip_bios") != 0;
let no_framerate_limit = matches.occurrences_of("no_framerate_limit") != 0;
let debug = matches.occurrences_of("debug") != 0;
let bios_path = Path::new(matches.value_of("bios").unwrap_or_default());
let rom_path = Path::new(matches.value_of("game_rom").unwrap());
@ -100,8 +97,6 @@ fn main() {
}
let cpu = cpu;
let sdl_context = sdl2::init().unwrap();
let minifb = Rc::new(RefCell::new(MiniFb {
window: Window::new(
"rustboyadvance-ng",
@ -126,13 +121,6 @@ fn main() {
minifb.clone(),
);
if debug {
gba.cpu.set_verbose(true);
let mut debugger = Debugger::new(gba);
println!("starting debugger...");
debugger.repl(matches.value_of("script_file")).unwrap();
println!("ending debugger...");
} else {
let frame_time = time::Duration::new(0, 1_000_000_000u32 / 60);
loop {
let start_time = time::Instant::now();
@ -157,4 +145,3 @@ fn main() {
}
}
}
}