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

sev at users.sourceforge.net sev at users.sourceforge.net
Sat Apr 21 23:35:32 CEST 2007


Revision: 26560
          http://scummvm.svn.sourceforge.net/scummvm/?rev=26560&view=rev
Author:   sev
Date:     2007-04-21 14:35:30 -0700 (Sat, 21 Apr 2007)

Log Message:
-----------
More safe version of patch #1689533: "AGI: Load from command line"

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

Modified: scummvm/trunk/engines/agi/agi.cpp
===================================================================
--- scummvm/trunk/engines/agi/agi.cpp	2007-04-21 21:31:53 UTC (rev 26559)
+++ scummvm/trunk/engines/agi/agi.cpp	2007-04-21 21:35:30 UTC (rev 26560)
@@ -419,6 +419,15 @@
 	if (ec == errOK)
 		ec = _loader->loadResource(rLOGIC, 0);
 
+
+	if (ConfMan.hasKey("save_slot")) {
+		char saveNameBuffer[256];
+
+		snprintf (saveNameBuffer, 256, "%s.%03d", _targetName.c_str(), ConfMan.getInt("save_slot"));
+
+		loadGame(saveNameBuffer);
+	}
+
 	return ec;
 }
 


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