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

Method Save

src/scene_save.cpp:79–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79bool 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
93bool Scene_Save::Save(std::ostream& os, int slot_id, bool prepare_save) {
94 lcf::rpg::Save save;

Callers

nothing calls this directly

Calls 12

OpenOutputStreamMethod · 0.80
GetFaceIndexMethod · 0.80
GetFaceNameMethod · 0.80
GetLevelMethod · 0.80
SetSaveSlotMethod · 0.80
IncSaveCountMethod · 0.80
GetLcfDataMethod · 0.80
sizeMethod · 0.45
GetActorsMethod · 0.45
GetHpMethod · 0.45
GetNameMethod · 0.45
GetSaveDataMethod · 0.45

Tested by

no test coverage detected