[Scummvm-cvs-logs] SF.net SVN: scummvm:[36266] scummvm/trunk/engines/agi

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Wed Feb 11 16:36:13 CET 2009


Revision: 36266
          http://scummvm.svn.sourceforge.net/scummvm/?rev=36266&view=rev
Author:   thebluegr
Date:     2009-02-11 15:36:13 +0000 (Wed, 11 Feb 2009)

Log Message:
-----------
Fix for bug #2538123 - "AGI: loading from launcher disables hotkeys"

Modified Paths:
--------------
    scummvm/trunk/engines/agi/cycle.cpp
    scummvm/trunk/engines/agi/menu.cpp

Modified: scummvm/trunk/engines/agi/cycle.cpp
===================================================================
--- scummvm/trunk/engines/agi/cycle.cpp	2009-02-11 13:16:50 UTC (rev 36265)
+++ scummvm/trunk/engines/agi/cycle.cpp	2009-02-11 15:36:13 UTC (rev 36266)
@@ -330,6 +330,8 @@
 	_game.vars[vKey] = 0;
 
 	debugC(2, kDebugLevelMain, "Entering main loop");
+	bool firstLoop = true;
+
 	do {
 
 		if (!mainCycle())
@@ -345,6 +347,13 @@
 			}
 
 			interpretCycle();
+			
+			// Check if the user has asked to load a game from the command line
+			// or the launcher
+			if (firstLoop) {
+				checkQuickLoad();
+				firstLoop = false;
+			}
 
 			setflag(fEnteredCli, false);
 			setflag(fSaidAcceptedInput, false);

Modified: scummvm/trunk/engines/agi/menu.cpp
===================================================================
--- scummvm/trunk/engines/agi/menu.cpp	2009-02-11 13:16:50 UTC (rev 36265)
+++ scummvm/trunk/engines/agi/menu.cpp	2009-02-11 15:36:13 UTC (rev 36266)
@@ -260,11 +260,6 @@
 			--iter;
 		}
 	}
-
-	// We need to wait till the main menu is submitted by the game scripts
-	// before checking if we can start loading a save game from the command line.
-	// Menu initialization and submital takes place when the game starts only
-	_vm->checkQuickLoad();
 }
 
 bool Menu::keyhandler(int key) {


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