aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
authorFilippos Karapetis2010-10-27 21:43:08 +0000
committerFilippos Karapetis2010-10-27 21:43:08 +0000
commit8a08ca1f39a0dc5ad6003d8213fe8aec4acb7327 (patch)
tree07752e06208b28df6336d58a8a275aa21e8a6bfd /engines/sci
parent4089b9fe2cd506a8b708d376e88441a36fc72260 (diff)
downloadscummvm-rg350-8a08ca1f39a0dc5ad6003d8213fe8aec4acb7327.tar.gz
scummvm-rg350-8a08ca1f39a0dc5ad6003d8213fe8aec4acb7327.tar.bz2
scummvm-rg350-8a08ca1f39a0dc5ad6003d8213fe8aec4acb7327.zip
SCI: Cleanup, invoking pauseEngine() on Console::preEnter() and Console::postEnter()
svn-id: r53890
Diffstat (limited to 'engines/sci')
-rw-r--r--engines/sci/console.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/engines/sci/console.cpp b/engines/sci/console.cpp
index 9c06c40121..c511afe952 100644
--- a/engines/sci/console.cpp
+++ b/engines/sci/console.cpp
@@ -219,17 +219,11 @@ Console::~Console() {
}
void Console::preEnter() {
- if (_engine && _engine->_soundCmd)
- _engine->_soundCmd->pauseAll(true);
- g_system->getMixer()->pauseAll(true);
+ _engine->pauseEngine(true);
_enterTime = g_system->getMillis();
}
void Console::postEnter() {
- if (_engine && _engine->_soundCmd)
- g_sci->_soundCmd->pauseAll(false);
- g_system->getMixer()->pauseAll(false);
-
if (!_videoFile.empty()) {
_engine->_gfxCursor->kernelHide();
@@ -286,6 +280,7 @@ void Console::postEnter() {
_videoFrameDelay = 0;
}
+ _engine->pauseEngine(false);
// Subtract the time we were running the debugger from the game running time
_engine->_gamestate->gameStartTime += g_system->getMillis() - _enterTime;
}