aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--backends/saves/default/default-saves.cpp7
-rw-r--r--backends/saves/default/default-saves.h4
2 files changed, 6 insertions, 5 deletions
diff --git a/backends/saves/default/default-saves.cpp b/backends/saves/default/default-saves.cpp
index a0c5470c9f..8973101a5a 100644
--- a/backends/saves/default/default-saves.cpp
+++ b/backends/saves/default/default-saves.cpp
@@ -29,8 +29,9 @@
#if defined(USE_CLOUD) && defined(USE_LIBCURL)
#include "backends/cloud/cloudmanager.h"
-#include "common/file.h"
#endif
+#include "common/file.h"
+#include "common/system.h"
#if !defined(DISABLE_DEFAULT_SAVEFILEMANAGER)
@@ -369,6 +370,8 @@ void DefaultSaveFileManager::saveTimestamps(Common::HashMap<Common::String, uint
f.close();
}
+#endif // ifdef USE_LIBCURL
+
Common::String DefaultSaveFileManager::concatWithSavesPath(Common::String name) {
DefaultSaveFileManager *manager = dynamic_cast<DefaultSaveFileManager *>(g_system->getSavefileManager());
Common::String path = (manager ? manager->getSavePath() : ConfMan.get("savepath"));
@@ -385,6 +388,4 @@ Common::String DefaultSaveFileManager::concatWithSavesPath(Common::String name)
return path + '/' + name;
}
-#endif // ifdef USE_LIBCURL
-
#endif // !defined(DISABLE_DEFAULT_SAVEFILEMANAGER)
diff --git a/backends/saves/default/default-saves.h b/backends/saves/default/default-saves.h
index f2453810bf..2801dd5e01 100644
--- a/backends/saves/default/default-saves.h
+++ b/backends/saves/default/default-saves.h
@@ -52,10 +52,10 @@ public:
static Common::HashMap<Common::String, uint32> loadTimestamps();
static void saveTimestamps(Common::HashMap<Common::String, uint32> &timestamps);
- static Common::String concatWithSavesPath(Common::String name);
-
#endif
+ static Common::String concatWithSavesPath(Common::String name);
+
protected:
/**
* Get the path to the savegame directory.