aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2002-08-18 18:04:07 +0000
committerMax Horn2002-08-18 18:04:07 +0000
commit12b08c9ba13f628b921888ae53265d6ff1429fac (patch)
treef241d855da449d8281a405a6d5ef7b52def5c2b7
parentedae5b06db08b3c614b1efc0fe49c214857cbcc8 (diff)
downloadscummvm-rg350-12b08c9ba13f628b921888ae53265d6ff1429fac.tar.gz
scummvm-rg350-12b08c9ba13f628b921888ae53265d6ff1429fac.tar.bz2
scummvm-rg350-12b08c9ba13f628b921888ae53265d6ff1429fac.zip
oops forget to ci engine.cpp
svn-id: r4759
-rw-r--r--engine.cpp42
1 files changed, 42 insertions, 0 deletions
diff --git a/engine.cpp b/engine.cpp
new file mode 100644
index 0000000000..748b176d4d
--- /dev/null
+++ b/engine.cpp
@@ -0,0 +1,42 @@
+/* ScummVM - Scumm Interpreter
+ * Copyright (C) 2002 The ScummVM project
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * $Header$
+ */
+
+#include "engine.h"
+#include "sound/mixer.h"
+#include "gameDetector.h"
+
+/* FIXME - BIG HACK for MidiEmu */
+OSystem *g_system = 0;
+SoundMixer *g_mixer = 0;
+
+Engine::Engine(GameDetector *detector, OSystem *syst)
+ : _system(syst)
+{
+ _mixer = new SoundMixer();
+
+ /* FIXME - BIG HACK for MidiEmu */
+ g_system = _system;
+ g_mixer = _mixer;
+}
+
+Engine::~Engine()
+{
+ delete _mixer;
+}