diff options
author | CeRiAl | 2011-07-07 02:47:46 +0200 |
---|---|---|
committer | CeRiAl | 2011-07-19 21:35:37 +0200 |
commit | f60d6f7a9776253ad4716eb8a72fba18c91a7588 (patch) | |
tree | e99be3fb64f837609e13d9219ead8ab69c291226 /common/system.cpp | |
parent | 828f1884b463c49eb39b7f63def0e4bda15d11c6 (diff) | |
download | scummvm-rg350-f60d6f7a9776253ad4716eb8a72fba18c91a7588.tar.gz scummvm-rg350-f60d6f7a9776253ad4716eb8a72fba18c91a7588.tar.bz2 scummvm-rg350-f60d6f7a9776253ad4716eb8a72fba18c91a7588.zip |
MACOSX/UPDATES: Streamline UpdateManager
Moved UpdateManager related code from backends/modular-backend.* to
common/system.*. Added switch --enable/disable-updates to be able
to disable updates support generally.
Diffstat (limited to 'common/system.cpp')
-rw-r--r-- | common/system.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/common/system.cpp b/common/system.cpp index 8d5bfd39cd..59210544ab 100644 --- a/common/system.cpp +++ b/common/system.cpp @@ -28,6 +28,7 @@ #include "common/savefile.h" #include "common/str.h" #include "common/taskbar.h" +#include "common/updates.h" #include "common/textconsole.h" #include "backends/audiocd/default/default-audiocd.h" @@ -44,6 +45,9 @@ OSystem::OSystem() { #if defined(USE_TASKBAR) _taskbarManager = 0; #endif +#if defined(USE_UPDATES) + _updateManager = 0; +#endif _fsFactory = 0; } @@ -62,6 +66,11 @@ OSystem::~OSystem() { _taskbarManager = 0; #endif +#if defined(USE_UPDATES) + delete _updateManager; + _updateManager = 0; +#endif + delete _savefileManager; _savefileManager = 0; |