Rewrote save game screen, added rest of multiple save file support

This commit is contained in:
Maruno17
2024-10-22 22:17:19 +01:00
parent 6152b75cb1
commit 3eb2724794
12 changed files with 762 additions and 70 deletions

View File

@@ -201,7 +201,8 @@ module SaveData
validate save_data => Hash
conversions_to_run = self.get_conversions(save_data)
return false if conversions_to_run.none?
File.open(SaveData::FILE_PATH + ".bak", "wb") { |f| Marshal.dump(save_data, f) }
filepath = SaveData::DIRECTORY + SaveData.filename_from_index(save_data[:stats].save_filename_number || 0)
File.open(filepath + ".bak", "wb") { |f| Marshal.dump(save_data, f) }
Console.echo_h1(_INTL("Converting save file"))
conversions_to_run.each do |conversion|
Console.echo_li("#{conversion.title}...")