MCPcopy Create free account
hub / github.com/EasyRPG/Player / GetSaveFilename

Method GetSaveFilename

src/scene_save.cpp:68–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68std::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
79bool Scene_Save::Save(const FilesystemView& fs, int slot_id, bool prepare_save) {
80 const auto filename = GetSaveFilename(fs, slot_id);

Callers

nothing calls this directly

Calls 2

FindFileMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected