mirror of
https://github.com/Polprzewodnikowy/SummerCart64.git
synced 2024-12-25 04:21:56 +01:00
use simple save extension
This commit is contained in:
parent
b915a7b4e3
commit
2bb47720e2
@ -291,17 +291,7 @@ impl Handler {
|
||||
let filename = &if let Some(path) = path {
|
||||
path.to_string_lossy().to_string()
|
||||
} else {
|
||||
generate_filename(
|
||||
"save",
|
||||
match save_writeback.save {
|
||||
sc64::SaveType::Eeprom4k | sc64::SaveType::Eeprom16k => "eep",
|
||||
sc64::SaveType::Sram | sc64::SaveType::SramBanked | sc64::SaveType::Sram1m => {
|
||||
"srm"
|
||||
}
|
||||
sc64::SaveType::Flashram => "fla",
|
||||
_ => "sav",
|
||||
},
|
||||
)
|
||||
generate_filename("save", "sav")
|
||||
};
|
||||
match File::create(filename) {
|
||||
Ok(mut file) => {
|
||||
|
Loading…
Reference in New Issue
Block a user