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

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Sat Aug 28 01:21:08 CEST 2010


Revision: 52419
          http://scummvm.svn.sourceforge.net/scummvm/?rev=52419&view=rev
Author:   thebluegr
Date:     2010-08-27 23:21:08 +0000 (Fri, 27 Aug 2010)

Log Message:
-----------
SCI: Fixed bug #3054613, "QFG character saves, naming convention"

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

Modified: scummvm/trunk/engines/sci/sci.cpp
===================================================================
--- scummvm/trunk/engines/sci/sci.cpp	2010-08-27 23:11:29 UTC (rev 52418)
+++ scummvm/trunk/engines/sci/sci.cpp	2010-08-27 23:21:08 UTC (rev 52419)
@@ -639,9 +639,11 @@
 Common::String SciEngine::getFilePrefix() const {
 	if (_gameId == GID_QFG2) {
 		// Quest for Glory 2 wants to read files from Quest for Glory 1 (EGA/VGA) to import character data
-		if (_gamestate->currentRoomNumber() == 805)
-			return "qfg1";
-		// TODO: Include import-room for qfg1vga
+		if (_gamestate->currentRoomNumber() == 805) {
+			// Check if there are any QFG1VGA games - bug #3054613
+			Common::StringArray saveNames = g_engine->getSaveFileManager()->listSavefiles("qfg1vga-*.sav");
+			return (saveNames.size() > 0) ? "qfg1vga" : "qfg1";
+		}
 	} else if (_gameId == GID_QFG3) {
 		// Quest for Glory 3 wants to read files from Quest for Glory 2 to import character data
 		if (_gamestate->currentRoomNumber() == 54)


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