aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/console.cpp
diff options
context:
space:
mode:
authorWillem Jan Palenstijn2014-10-07 19:48:18 +0200
committerWillem Jan Palenstijn2015-02-14 16:06:55 +0100
commit58ef44eb8d9d3eb78eb013441a8d6d12940ee5e3 (patch)
tree03e2e70bfdf6fda9afadb85eaa01a777c99225f6 /engines/sci/console.cpp
parent26d55b09a8b198b0a9b9349d684eec6376d98c8c (diff)
downloadscummvm-rg350-58ef44eb8d9d3eb78eb013441a8d6d12940ee5e3.tar.gz
scummvm-rg350-58ef44eb8d9d3eb78eb013441a8d6d12940ee5e3.tar.bz2
scummvm-rg350-58ef44eb8d9d3eb78eb013441a8d6d12940ee5e3.zip
SCI: Register and save playBed option to PlaySound
The playBed option is not handled yet, only stored. This increases the savegame format version.
Diffstat (limited to 'engines/sci/console.cpp')
-rw-r--r--engines/sci/console.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/engines/sci/console.cpp b/engines/sci/console.cpp
index e233c4cba4..a3abf606d0 100644
--- a/engines/sci/console.cpp
+++ b/engines/sci/console.cpp
@@ -2172,6 +2172,7 @@ bool Console::cmdStartSound(int argc, const char **argv) {
return true;
}
+ // TODO: Maybe also add a playBed option.
g_sci->_soundCmd->startNewSound(number);
return cmdExit(0, 0);
}
@@ -2198,9 +2199,10 @@ bool Console::cmdToggleSound(int argc, const char **argv) {
Common::String newState = argv[2];
newState.toLowercase();
- if (newState == "play")
- g_sci->_soundCmd->processPlaySound(id);
- else if (newState == "stop")
+ if (newState == "play") {
+ // Maybe also have a 'playbed' option. (Second argument to processPlaySound.)
+ g_sci->_soundCmd->processPlaySound(id, false);
+ } else if (newState == "stop")
g_sci->_soundCmd->processStopSound(id, false);
else
debugPrintf("New state can either be 'play' or 'stop'");