[Scummvm-cvs-logs] SF.net SVN: scummvm:[55706] scummvm/trunk/engines/mohawk/console.cpp

fuzzie at users.sourceforge.net fuzzie at users.sourceforge.net
Tue Feb 1 13:57:36 CET 2011


Revision: 55706
          http://scummvm.svn.sourceforge.net/scummvm/?rev=55706&view=rev
Author:   fuzzie
Date:     2011-02-01 12:57:34 +0000 (Tue, 01 Feb 2011)

Log Message:
-----------
MOHAWK: Allow mode changes from LB's debug console.

Modified Paths:
--------------
    scummvm/trunk/engines/mohawk/console.cpp

Modified: scummvm/trunk/engines/mohawk/console.cpp
===================================================================
--- scummvm/trunk/engines/mohawk/console.cpp	2011-02-01 03:50:29 UTC (rev 55705)
+++ scummvm/trunk/engines/mohawk/console.cpp	2011-02-01 12:57:34 UTC (rev 55706)
@@ -694,11 +694,11 @@
 
 bool LivingBooksConsole::Cmd_ChangePage(int argc, const char **argv) {
 	if (argc == 1) {
-		DebugPrintf("Usage: changePage <page>\n");
+		DebugPrintf("Usage: changePage <page> [<mode>]\n");
 		return true;
 	}
 
-	if (_vm->tryLoadPageStart(_vm->getCurMode(), atoi(argv[1])))
+	if (_vm->tryLoadPageStart(argc == 2 ? _vm->getCurMode() : (LBMode)atoi(argv[2]), atoi(argv[1])))
 		return false;
 	DebugPrintf("no such page %d\n", atoi(argv[1]));
 	return true;


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