minor fixes
This commit is contained in:
parent
904b7c2a41
commit
e7f6c58d0a
|
@ -109,7 +109,6 @@ pub fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
|
|||
// TODO: load a config file specified on the CLI
|
||||
variables.insert("mgba_skip_bios", "ON");
|
||||
variables.insert("gpsp_drc", "enabled");
|
||||
variables.insert("gpsp_frameskip", "auto");
|
||||
variables.insert("gpsp_frame_mixing", "enabled");
|
||||
variables.insert("gpsp_save_method", "libretro");
|
||||
emu.register_component(variables)?;
|
||||
|
@ -120,9 +119,9 @@ pub fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
|
|||
emu.unserialize_path(state)?;
|
||||
}
|
||||
|
||||
let mut frame = 0;
|
||||
let mut frame = 0u64;
|
||||
while let ControlFlow::Continue = emu.run() {
|
||||
frame += 1;
|
||||
frame = frame.wrapping_add(1);
|
||||
}
|
||||
|
||||
eprintln!("Ran for {} frames.", frame);
|
||||
|
|
|
@ -85,7 +85,6 @@ impl RetroCallbacks for SimpleSdl2CanvasComponent {
|
|||
}
|
||||
|
||||
fn get_variable(&mut self, key: &str) -> Option<String> {
|
||||
eprintln!("get_variable({})", key);
|
||||
match key {
|
||||
"parallel-n64-gfxplugin" => Some("angrylion".to_string()),
|
||||
"mupen64plus-rdp-plugin" => Some("angrylion".to_string()),
|
||||
|
|
Loading…
Reference in New Issue