File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -850,6 +850,8 @@ int Scene::SaveData(std::string pathBase, bool doAsyncSaves) {
850
850
std::vector<SceneLayerInfo> Scene::GetCopiedSceneLayerBitmaps () {
851
851
std::vector<SceneLayerInfo> layerInfos;
852
852
853
+ // TODO- implement this. Basically just copy each scene layer to the vector
854
+ // This is for saving- we block to copy these layers, but it means the actual saving (compression, write to disk etc) can be done async
853
855
/*
854
856
// Save Terrain's data
855
857
m_pTerrain
Original file line number Diff line number Diff line change @@ -82,6 +82,8 @@ bool ActivityMan::SaveCurrentGame(const std::string& fileName) {
82
82
return false ;
83
83
}
84
84
85
+ // THIS BLOCK OF CODE NEEDS ZIPPIFIED!
86
+ /*
85
87
// TODO, save to a zip instead of a directory
86
88
std::filesystem::create_directory(g_PresetMan.GetFullModulePath(c_UserScriptedSavesModuleName) + "/" + fileName);
87
89
@@ -90,6 +92,7 @@ bool ActivityMan::SaveCurrentGame(const std::string& fileName) {
90
92
g_ConsoleMan.PrintString("ERROR: Failed to save scene bitmaps while saving!");
91
93
return false;
92
94
}
95
+ */
93
96
94
97
// We need a copy of our scene, because we have to do some fixup to remove PLACEONLOAD items and only keep the current MovableMan state.
95
98
std::unique_ptr<Scene> modifiableScene (dynamic_cast <Scene*>(scene->Clone ()));
@@ -165,6 +168,8 @@ bool ActivityMan::SaveCurrentGame(const std::string& fileName) {
165
168
bool ActivityMan::LoadAndLaunchGame (const std::string& fileName) {
166
169
m_SaveGameTask.wait ();
167
170
171
+ // TODO- this needs to load a zip!
172
+
168
173
std::string saveFilePath = g_PresetMan.GetFullModulePath (c_UserScriptedSavesModuleName) + " /" + fileName + " /Save.ini" ;
169
174
170
175
if (!std::filesystem::exists (saveFilePath)) {
You can’t perform that action at this time.
0 commit comments