[Scummvm-cvs-logs] SF.net SVN: scummvm: [22755] scummvm/trunk/engines/scumm/scumm.cpp
cyx at users.sourceforge.net
cyx at users.sourceforge.net
Mon May 29 11:31:06 CEST 2006
Revision: 22755
Author: cyx
Date: 2006-05-29 11:30:27 -0700 (Mon, 29 May 2006)
ViewCVS: http://svn.sourceforge.net/scummvm/?rev=22755&view=rev
Log Message:
-----------
The ScummDebugger object needs to be created after _numVariables has been set. This is apparently only done in in readMAXS() which is called by readIndexFile(). Moved the call to the object constructor in the init() method. This fixes the 'scumm_vars' debugger command.
Modified Paths:
--------------
scummvm/trunk/engines/scumm/scumm.cpp
Modified: scummvm/trunk/engines/scumm/scumm.cpp
===================================================================
--- scummvm/trunk/engines/scumm/scumm.cpp 2006-05-29 18:24:52 UTC (rev 22754)
+++ scummvm/trunk/engines/scumm/scumm.cpp 2006-05-29 18:30:27 UTC (rev 22755)
@@ -966,6 +966,9 @@
readIndexFile();
+ // Create the debugger now that _numVariables has been set
+ _debugger = new ScummDebugger(this);
+
resetScumm();
resetScummVars();
@@ -1082,10 +1085,6 @@
#if (defined(PALMOS_ARM) || defined(PALMOS_DEBUG) || defined(__GP32__))
Graphics::initfonts();
#endif
-
- // Create debugger
- if (!_debugger)
- _debugger = new ScummDebugger(this);
}
void ScummEngine::setupCharsetRenderer() {
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