| 66 | } |
| 67 | |
| 68 | std::string Scene_Save::GetSaveFilename(const FilesystemView& fs, int slot_id) { |
| 69 | const auto save_file = fmt::format("Save{:02d}.lsd", slot_id); |
| 70 | |
| 71 | std::string filename = fs.FindFile(save_file); |
| 72 | |
| 73 | if (filename.empty()) { |
| 74 | filename = save_file; |
| 75 | } |
| 76 | return filename; |
| 77 | } |
| 78 | |
| 79 | bool Scene_Save::Save(const FilesystemView& fs, int slot_id, bool prepare_save) { |
| 80 | const auto filename = GetSaveFilename(fs, slot_id); |