aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorAlexander Tkachev2016-05-11 22:52:14 +0600
committerAlexander Tkachev2016-08-24 16:07:55 +0600
commitfade746f374cc801870e68934f1dbb3e9c726198 (patch)
tree2cfe2a4e5b571c849ae9cd4525496f3a5838a39d /common
parent6c83930126a2dcb9af4fa631fc7226db1756f801 (diff)
downloadscummvm-rg350-fade746f374cc801870e68934f1dbb3e9c726198.tar.gz
scummvm-rg350-fade746f374cc801870e68934f1dbb3e9c726198.tar.bz2
scummvm-rg350-fade746f374cc801870e68934f1dbb3e9c726198.zip
CLOUD: Add USE_CLOUD feature
Adds USE_CLOUD in both configure and create_project.
Diffstat (limited to 'common')
-rw-r--r--common/module.mk5
-rw-r--r--common/system.h15
2 files changed, 8 insertions, 12 deletions
diff --git a/common/module.mk b/common/module.mk
index 29def4b8aa..7118ea36ff 100644
--- a/common/module.mk
+++ b/common/module.mk
@@ -62,9 +62,8 @@ MODULE_OBJS += \
updates.o
endif
-#TODO define USE_CLOUD
-#ifdef USE_CLOUD
-#endif
+ifdef USE_CLOUD
+endif
# Include common rules
include $(srcdir)/rules.mk
diff --git a/common/system.h b/common/system.h
index b1c74cbc5b..b24bc0a875 100644
--- a/common/system.h
+++ b/common/system.h
@@ -56,10 +56,9 @@ class HardwareInputSet;
class Keymap;
class KeymapperDefaultBindings;
#endif
-//TODO: define USE_CLOUD
-//#if defined(USE_CLOUD)
+#if defined(USE_CLOUD)
class CloudManager;
-//#endif
+#endif
}
class AudioCDManager;
@@ -182,15 +181,14 @@ protected:
Common::UpdateManager *_updateManager;
#endif
-//TODO: define USE_CLOUD
-//#if defined(USE_CLOUD)
+#if defined(USE_CLOUD)
/**
* No default value is provided for _cloudThread by OSystem.
*
* @note _cloudThread is deleted by the OSystem destructor.
*/
Common::CloudManager *_cloudThread;
-//#endif
+#endif
/**
* No default value is provided for _fsFactory by OSystem.
@@ -1130,8 +1128,7 @@ public:
}
#endif
-//TODO: define USE_CLOUD
-//#if defined(USE_CLOUD)
+#if defined(USE_CLOUD)
/**
* Returns the CloudManager, used to sync save games and
* upload/download files from user's cloud storage.
@@ -1141,7 +1138,7 @@ public:
virtual Common::CloudManager *getCloudManager() {
return _cloudThread;
}
-//#endif
+#endif
/**
* Returns the FilesystemFactory object, depending on the current architecture.