aboutsummaryrefslogtreecommitdiff
path: root/base
diff options
context:
space:
mode:
authorMax Horn2006-10-22 15:42:29 +0000
committerMax Horn2006-10-22 15:42:29 +0000
commit07f7761479eba5defdcfe0bd300bc438d9245551 (patch)
tree1d5d2ca4852369e9e5502b015926ab3e2ec4429f /base
parentdf24f1ef4ed2b8d0e6c5df6e1bfbbcb2fc86d2a8 (diff)
downloadscummvm-rg350-07f7761479eba5defdcfe0bd300bc438d9245551.tar.gz
scummvm-rg350-07f7761479eba5defdcfe0bd300bc438d9245551.tar.bz2
scummvm-rg350-07f7761479eba5defdcfe0bd300bc438d9245551.zip
Backend modularization: Create timer manager, savefile manager and audio mixer in the backends for increased flexibility
svn-id: r24443
Diffstat (limited to 'base')
-rw-r--r--base/main.cpp19
1 files changed, 0 insertions, 19 deletions
diff --git a/base/main.cpp b/base/main.cpp
index 6c97e4243b..8eb981f894 100644
--- a/base/main.cpp
+++ b/base/main.cpp
@@ -35,16 +35,12 @@
#include "base/plugins.h"
#include "base/version.h"
-#include "backends/timer/default/default-timer.h"
#include "common/config-manager.h"
#include "common/file.h"
#include "common/fs.h"
#include "common/system.h"
-#include "common/timer.h"
#include "gui/newgui.h"
#include "gui/message.h"
-#include "sound/mididrv.h"
-#include "sound/mixer.h"
#if defined(_WIN32_WCE)
#include "backends/platform/wince/CELauncherDialog.h"
@@ -227,10 +223,6 @@ static int runGame(const Plugin *plugin, OSystem &system, const Common::String &
}
-// FIXME: Temporary hack, to be removed soon
-Audio::Mixer *g_mixer = 0;
-
-
extern "C" int scummvm_main(int argc, char *argv[]) {
Common::String specialDebug;
Common::String command;
@@ -288,11 +280,6 @@ extern "C" int scummvm_main(int argc, char *argv[]) {
// the command line params) was read.
system.initBackend();
- // Create the timer services
- Common::g_timer = new DefaultTimerManager(&system);
-
- g_mixer = new Audio::Mixer();
-
// Set initial window caption
system.setWindowCaption(gScummVMFullVersion);
@@ -336,11 +323,5 @@ extern "C" int scummvm_main(int argc, char *argv[]) {
launcherDialog(system);
}
- // Deinit the mixer
- delete g_mixer;
-
- // Deinit the timer
- delete Common::g_timer;
-
return 0;
}