[Scummvm-cvs-logs] SF.net SVN: scummvm:[54128] scummvm/trunk/engines/toon

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Sun Nov 7 22:21:56 CET 2010


Revision: 54128
          http://scummvm.svn.sourceforge.net/scummvm/?rev=54128&view=rev
Author:   lordhoto
Date:     2010-11-07 21:21:55 +0000 (Sun, 07 Nov 2010)

Log Message:
-----------
TOON: Fix debug console by implementing getDebugger.

Modified Paths:
--------------
    scummvm/trunk/engines/toon/toon.cpp
    scummvm/trunk/engines/toon/toon.h

Modified: scummvm/trunk/engines/toon/toon.cpp
===================================================================
--- scummvm/trunk/engines/toon/toon.cpp	2010-11-07 21:08:46 UTC (rev 54127)
+++ scummvm/trunk/engines/toon/toon.cpp	2010-11-07 21:21:55 UTC (rev 54128)
@@ -239,11 +239,11 @@
 						dialog.runModal();
 					}
 				}
-				// FIXME - Triggering Debug Console currently causes a segfault.
-				//if (event.kbd.keycode == Common::KEYCODE_d) {
-				//	this->getDebugger()->attach();
-				//	this->getDebugger()->onFrame();
-				//}
+
+				if (event.kbd.keycode == Common::KEYCODE_d) {
+					this->getDebugger()->attach();
+					this->getDebugger()->onFrame();
+				}
 			}
 			break;
 // Strangerke - Commented (not used)

Modified: scummvm/trunk/engines/toon/toon.h
===================================================================
--- scummvm/trunk/engines/toon/toon.h	2010-11-07 21:08:46 UTC (rev 54127)
+++ scummvm/trunk/engines/toon/toon.h	2010-11-07 21:21:55 UTC (rev 54128)
@@ -102,6 +102,7 @@
 	char **_specialInfoLine;
 
 	Common::Error run();
+	GUI::Debugger *getDebugger() { return _console; }
 	bool showMainmenu(bool &loadedGame);
 	void init();
 	bool loadToonDat();


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