diff options
author | Ludvig Strigeus | 2002-04-13 18:34:11 +0000 |
---|---|---|
committer | Ludvig Strigeus | 2002-04-13 18:34:11 +0000 |
commit | 9f191ea9c5882f59cd23adbcbaa4a1c704909573 (patch) | |
tree | f2ddc0e916248a56c82418b8346569bafd6e915a /main.cpp | |
parent | 38628f3543cf16d23968f541e4a35c95c2e17f13 (diff) | |
download | scummvm-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.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -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 */ |