diff options
author | Travis Howell | 2006-04-15 05:24:44 +0000 |
---|---|---|
committer | Travis Howell | 2006-04-15 05:24:44 +0000 |
commit | 18e6b21e288a280df4c8eb78c16013250d660726 (patch) | |
tree | c6ee3ecc223acc0423706558de10d323fdc7fc21 /engines/simon/items.cpp | |
parent | f1592e1fefb7d983ca1ddf8c5b72a71702cdef74 (diff) | |
download | scummvm-rg350-18e6b21e288a280df4c8eb78c16013250d660726.tar.gz scummvm-rg350-18e6b21e288a280df4c8eb78c16013250d660726.tar.bz2 scummvm-rg350-18e6b21e288a280df4c8eb78c16013250d660726.zip |
Add support for switching voice file in PC versions of FF and cleanup
svn-id: r21900
Diffstat (limited to 'engines/simon/items.cpp')
-rw-r--r-- | engines/simon/items.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/engines/simon/items.cpp b/engines/simon/items.cpp index 691222ad89..f7c9cbe262 100644 --- a/engines/simon/items.cpp +++ b/engines/simon/items.cpp @@ -1837,7 +1837,18 @@ void SimonEngine::o3_listSaveGames() { void SimonEngine::o3_checkCD() { // 135: switch CD - debug(0, "Switch to CD number %d", readVariable(97)); + uint disc = readVariable(97); + + if (!strcmp(_gameDescription->extra, "4CD")) { + _sound->switchVoiceFile(disc); + } else if (!strcmp(_gameDescription->extra, "2CD")) { + if (disc == 1 || disc == 2) + _sound->switchVoiceFile(1); + else if (disc == 3 || disc == 4) + _sound->switchVoiceFile(2); + } + + debug(0, "Switch to CD number %d", disc); } void SimonEngine::o3_screenTextBox() { |