WIP: Initial commit for savefile migration #133

Draft
not_a_segfault wants to merge 12 commits from not_a_segfault/PowerTools:dev into dev
Showing only changes of commit e13f87f81f - Show all commits

View file

@ -547,7 +547,12 @@ impl ApiMessageHandler {
} else { } else {
// A savefile in the current format doesn't exist yet. // A savefile in the current format doesn't exist yet.
// TODO: Parse it to the new format and save it. // TODO: Parse it to the new format and save it.
let app_id_from_game_id: u64;
let new_path = format!("{app_id_from_game_id}.ron");
let migrated_settings: crate::persist::FileJson = legacy_file.into(); let migrated_settings: crate::persist::FileJson = legacy_file.into();
migrated_settings.save(new_path);
} }
} else if current_settings.is_some() { } else if current_settings.is_some() {
// ... // ...