From f60d6f7a9776253ad4716eb8a72fba18c91a7588 Mon Sep 17 00:00:00 2001 From: CeRiAl Date: Thu, 7 Jul 2011 02:47:46 +0200 Subject: 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. --- common/system.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'common/system.cpp') 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" @@ -43,6 +44,9 @@ OSystem::OSystem() { _savefileManager = 0; #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; -- cgit v1.2.3