aboutsummaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
authorLudvig Strigeus2002-04-13 18:34:11 +0000
committerLudvig Strigeus2002-04-13 18:34:11 +0000
commit9f191ea9c5882f59cd23adbcbaa4a1c704909573 (patch)
treef2ddc0e916248a56c82418b8346569bafd6e915a /main.cpp
parent38628f3543cf16d23968f541e4a35c95c2e17f13 (diff)
downloadscummvm-rg350-9f191ea9c5882f59cd23adbcbaa4a1c704909573.tar.gz
scummvm-rg350-9f191ea9c5882f59cd23adbcbaa4a1c704909573.tar.bz2
scummvm-rg350-9f191ea9c5882f59cd23adbcbaa4a1c704909573.zip
new midi driver API,
no more USE_ADLIB, a couple of sdl graphics driver fixes. svn-id: r3925
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/main.cpp b/main.cpp
index 54320aac08..aafcf2f666 100644
--- a/main.cpp
+++ b/main.cpp
@@ -8,8 +8,6 @@ GameDetector detector;
Gui gui;
Scumm *g_scumm;
-SoundEngine sound;
-SOUND_DRIVER_TYPE snd_driv;
#if !defined(__APPLE__)
@@ -55,7 +53,7 @@ int main(int argc, char *argv[])
if (detector.detectMain(argc, argv))
return (-1);
- OSystem *system = OSystem_SDL_create(detector._gfx_mode, detector._fullScreen);
+ OSystem *system = detector.createSystem();
{
char *s = detector.getGameName();
@@ -66,16 +64,16 @@ int main(int argc, char *argv[])
/* Simon the Sorcerer? */
if (detector._gameId >= GID_SIMON_FIRST && detector._gameId <= GID_SIMON_LAST) {
/* Simon the Sorcerer. Completely different initialization */
+ MidiDriver *midi = detector.createMidi();
+
SimonState *simon = SimonState::create();
simon->_game = detector._gameId - GID_SIMON_FIRST;
- simon->go(system);
+ simon->go(system, midi);
} else {
Scumm *scumm = Scumm::createFromDetector(&detector, system);
g_scumm = scumm;
- sound.initialize(scumm, &snd_driv);
-
/* bind to Gui */
scumm->_gui = &gui;
gui.init(scumm); /* Reinit GUI after loading a game */