Skip to content

Commit

Permalink
Fix savegames in rusty-boy-sdl
Browse files Browse the repository at this point in the history
  • Loading branch information
Javier-varez committed May 19, 2024
1 parent 658a862 commit aab8556
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rusty-boy-sdl/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ fn attempt_restore_save_file(rusty_boy: &mut RustyBoy, rom_path: &Path) -> anyho
}

fn save_file(rom_path: &Path, data: &[u8]) -> anyhow::Result<()> {
let save_file_path = rom_path.with_extension(".save");
let save_file_path = rom_path.with_extension("save");
std::fs::write(&save_file_path, data)?;
Ok(())
}
Expand Down

0 comments on commit aab8556

Please sign in to comment.