aboutsummaryrefslogtreecommitdiff
path: root/backends/saves/default
diff options
context:
space:
mode:
authorCameron Cawley2019-04-02 16:53:56 +0100
committerMatan Bareket2019-04-02 12:02:21 -0400
commit27e6a28e4e6d8b34f34278d8d427ac6b59d48562 (patch)
tree3c85de2b25854b9a1099e433e413cb8500a4d4b7 /backends/saves/default
parent364fb12e83f5a2a6c2d1596d3f374b47f6b20146 (diff)
downloadscummvm-rg350-27e6a28e4e6d8b34f34278d8d427ac6b59d48562.tar.gz
scummvm-rg350-27e6a28e4e6d8b34f34278d8d427ac6b59d48562.tar.bz2
scummvm-rg350-27e6a28e4e6d8b34f34278d8d427ac6b59d48562.zip
BACKENDS: Fix compilation with SDL_Net enabled and cloud support disabled
Diffstat (limited to 'backends/saves/default')
-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.