[Scummvm-cvs-logs] SF.net SVN: scummvm:[53890] scummvm/trunk/engines/sci/console.cpp
thebluegr at users.sourceforge.net
thebluegr at users.sourceforge.net
Wed Oct 27 23:43:08 CEST 2010
Revision: 53890
http://scummvm.svn.sourceforge.net/scummvm/?rev=53890&view=rev
Author: thebluegr
Date: 2010-10-27 21:43:08 +0000 (Wed, 27 Oct 2010)
Log Message:
-----------
SCI: Cleanup, invoking pauseEngine() on Console::preEnter() and Console::postEnter()
Modified Paths:
--------------
scummvm/trunk/engines/sci/console.cpp
Modified: scummvm/trunk/engines/sci/console.cpp
===================================================================
--- scummvm/trunk/engines/sci/console.cpp 2010-10-27 19:48:54 UTC (rev 53889)
+++ scummvm/trunk/engines/sci/console.cpp 2010-10-27 21:43:08 UTC (rev 53890)
@@ -219,17 +219,11 @@
}
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 @@
_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;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list