aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/console.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2010-10-31 01:45:24 +0000
committerFilippos Karapetis2010-10-31 01:45:24 +0000
commitdca3c8d8bfc6c4db38cf8e8291818dd472041d4e (patch)
treecdf126108f9fb444f94dfc10f5b0b816b2335669 /engines/sci/console.cpp
parentec680ef8aad8e82a14eb5a2af59fb72284919722 (diff)
downloadscummvm-rg350-dca3c8d8bfc6c4db38cf8e8291818dd472041d4e.tar.gz
scummvm-rg350-dca3c8d8bfc6c4db38cf8e8291818dd472041d4e.tar.bz2
scummvm-rg350-dca3c8d8bfc6c4db38cf8e8291818dd472041d4e.zip
SCI: Play time related changes
- Added support for savegame play time - Removed obsolete variables for calculating the play time (EngineState::gameStartTime and Console::_enterTime) - Renamed some variables to camelCase svn-id: r53974
Diffstat (limited to 'engines/sci/console.cpp')
-rw-r--r--engines/sci/console.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/engines/sci/console.cpp b/engines/sci/console.cpp
index c668ec9436..deab3dadd8 100644
--- a/engines/sci/console.cpp
+++ b/engines/sci/console.cpp
@@ -68,7 +68,7 @@ bool g_debug_track_mouse_clicks = false;
static int parse_reg_t(EngineState *s, const char *str, reg_t *dest, bool mayBeValue);
Console::Console(SciEngine *engine) : GUI::Debugger(),
- _engine(engine), _debugState(engine->_debugState), _enterTime(0) {
+ _engine(engine), _debugState(engine->_debugState) {
// Variables
DVar_Register("sleeptime_factor", &g_debug_sleeptime_factor, DVAR_INT, 0);
@@ -222,7 +222,6 @@ Console::~Console() {
void Console::preEnter() {
_engine->pauseEngine(true);
- _enterTime = g_system->getMillis();
}
void Console::postEnter() {
@@ -283,8 +282,6 @@ void Console::postEnter() {
}
_engine->pauseEngine(false);
- // Subtract the time we were running the debugger from the game running time
- _engine->_gamestate->gameStartTime += g_system->getMillis() - _enterTime;
}
bool Console::cmdHelp(int argc, const char **argv) {