commit 4c76bc53
The state dir feels like overkill. Just put it in the save games folder. Also create an empty folder for dropping mods in.
Changed files
| M | source/code/os.cpp before |
diff --git a/source/code/os.cpp b/source/code/os.cpp
index ee50e54..cb1c527 100644
--- a/source/code/os.cpp
+++ b/source/code/os.cpp
@@ -53,7 +53,7 @@ std::string getPathToSaveFiles() {
}
std::string getPathToStateFiles() {
- return sago::getStateDir()+"/"+GAMENAME+"/state";
+ return getPathToSaveFiles()+"/state";
}
void setPathToSaveFiles(const std::string& path) {
@@ -142,7 +142,7 @@ void OsCreateFolder(const std::string& path) {
void OsCreateSaveFolder() {
std::string path = getPathToSaveFiles();
- OsCreateFolder(path);
+ OsCreateFolder(path+"/mods");
}
std::vector<std::string> OsGetDirFileList(const std::string& path) {