git repos / saland

commit eb360c0b

Poul Sander · 2021-06-02 16:46
eb360c0bb3886bee5029aad6fb30c96325c47722 patch · browse files
parent 81ced75ffeaa56da6538c624886ffb64bf4d6e87

Use new save folder. As Saland is a new game there are no reason to reuse the old one

Changed files

M src/os.cpp before
diff --git a/src/os.cpp b/src/os.cpp index 2536021..49bc133 100644 --- a/src/os.cpp +++ b/src/os.cpp
@@ -27,8 +27,6 @@ https://github.com/sago007/saland
#include "sago/platform_folders.h"
#include "version.h"
-static sago::PlatformFolders pf;
-
static std::string overrideSavePath = "";
@@ -42,7 +40,7 @@ std::string getPathToSaveFiles() {
if (overrideSavePath.length() > 0) {
return overrideSavePath;
}
- return pf.getSaveGamesFolder1()+"/"+GAMENAME;
+ return sago::getSaveGamesFolder2()+"/"+GAMENAME;
}
void setPathToSaveFiles(const std::string& path) {