| 77 | } |
| 78 | |
| 79 | bool Scene_Save::Save(const FilesystemView& fs, int slot_id, bool prepare_save) { |
| 80 | const auto filename = GetSaveFilename(fs, slot_id); |
| 81 | Output::Debug("Saving to {}", filename); |
| 82 | |
| 83 | auto save_stream = FileFinder::Save().OpenOutputStream(filename); |
| 84 | |
| 85 | if (!save_stream) { |
| 86 | Output::Warning("Failed saving to {}", filename); |
| 87 | return false; |
| 88 | } |
| 89 | |
| 90 | return Save(save_stream, slot_id, prepare_save); |
| 91 | } |
| 92 | |
| 93 | bool Scene_Save::Save(std::ostream& os, int slot_id, bool prepare_save) { |
| 94 | lcf::rpg::Save save; |
nothing calls this directly
no test coverage detected