diff options
author | Jamieson Christian | 2003-12-09 10:19:27 +0000 |
---|---|---|
committer | Jamieson Christian | 2003-12-09 10:19:27 +0000 |
commit | e6d176bc67ad78046ff345870e3c69a586252ee4 (patch) | |
tree | 85f9dbd61bae17317a65ba929ab9f8be2e820229 /simon | |
parent | 9e1cac4caa71128a87fe2800cfec650a65659916 (diff) | |
download | scummvm-rg350-e6d176bc67ad78046ff345870e3c69a586252ee4.tar.gz scummvm-rg350-e6d176bc67ad78046ff345870e3c69a586252ee4.tar.bz2 scummvm-rg350-e6d176bc67ad78046ff345870e3c69a586252ee4.zip |
Added support for Simon 2's native MT-32 music tracks
svn-id: r11540
Diffstat (limited to 'simon')
-rw-r--r-- | simon/simon.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/simon/simon.cpp b/simon/simon.cpp index 2e65b2e91e..3ac5afb424 100644 --- a/simon/simon.cpp +++ b/simon/simon.cpp @@ -209,7 +209,10 @@ SimonEngine::SimonEngine(GameDetector *detector, OSystem *syst) VGA_MEM_SIZE = gVars->memory[kMemSimon2Games]; #endif TABLES_MEM_SIZE = 100000; - MUSIC_INDEX_BASE = 1128 / 4; + if ((_game & GF_SIMON2) && ConfMan.getBool("native_mt32")) + MUSIC_INDEX_BASE = (1128 + 612) / 4; + else + MUSIC_INDEX_BASE = 1128 / 4; SOUND_INDEX_BASE = 1660 / 4; } else { VGA_DELAY_BASE = 1; @@ -5040,7 +5043,7 @@ void SimonEngine::loadMusic (uint music) { if (_game & GF_SIMON2) { // Simon 2 music midi.stop(); _game_file->seek(_game_offsets_ptr[MUSIC_INDEX_BASE + music - 1], SEEK_SET); - if (_game & GF_WIN) { + if (_game & GF_WIN && !ConfMan.getBool("native_mt32")) { midi.loadMultipleSMF (_game_file); } else { midi.loadXMIDI (_game_file); |