diff options
author | Nicolas Bacca | 2002-05-18 20:12:41 +0000 |
---|---|---|
committer | Nicolas Bacca | 2002-05-18 20:12:41 +0000 |
commit | 427cc598e02ce3e4cd2f64843ce721c1947218e6 (patch) | |
tree | d165289c9f0a01ae0fdf5269472d9b62166c4eac /main.cpp | |
parent | 3b4c6ceb0f621b68a5a44922d7218987faedb10e (diff) | |
download | scummvm-rg350-427cc598e02ce3e4cd2f64843ce721c1947218e6.tar.gz scummvm-rg350-427cc598e02ce3e4cd2f64843ce721c1947218e6.tar.bz2 scummvm-rg350-427cc598e02ce3e4cd2f64843ce721c1947218e6.zip |
Big ugly hairy hack to remove Scumm class dependencies to the MidiEmu driver, and add streaming (ahah) emulation - someone please fix this as soon as possible :)
svn-id: r4349
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -32,6 +32,9 @@ GameDetector detector; Gui gui; Scumm *g_scumm; +/* FIXME */ +OSystem *g_system; +SoundMixer *g_mixer; Config * scummcfg; @@ -182,6 +185,8 @@ game settings! MidiDriver *midi = detector.createMidi(); SimonState *simon = SimonState::create(system, midi); + g_system = simon->_system; + g_mixer = &simon->_mixer[0]; simon->_game = detector._gameId - GID_SIMON_FIRST; simon->set_volume(detector._sfx_volume); simon->_game_path = detector._gameDataPath; @@ -190,6 +195,8 @@ game settings! } else { Scumm *scumm = Scumm::createFromDetector(&detector, system); g_scumm = scumm; + g_system = scumm->_system; + g_mixer = &scumm->_mixer[0]; g_scumm->_sound_volume_master = 0; g_scumm->_sound_volume_music = detector._music_volume; g_scumm->_sound_volume_sfx = detector._sfx_volume; |