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

m_kiewitz at users.sourceforge.net m_kiewitz at users.sourceforge.net
Sun Aug 29 17:18:24 CEST 2010


Revision: 52442
          http://scummvm.svn.sourceforge.net/scummvm/?rev=52442&view=rev
Author:   m_kiewitz
Date:     2010-08-29 15:18:24 +0000 (Sun, 29 Aug 2010)

Log Message:
-----------
SCI: fix build

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

Modified: scummvm/trunk/engines/sci/engine/kfile.cpp
===================================================================
--- scummvm/trunk/engines/sci/engine/kfile.cpp	2010-08-29 15:13:25 UTC (rev 52441)
+++ scummvm/trunk/engines/sci/engine/kfile.cpp	2010-08-29 15:18:24 UTC (rev 52442)
@@ -777,26 +777,6 @@
 		//  when we get here. That's why we need to remember selection via kDrawControl
 		name = s->_dirseeker.getVirtualFilename(s->_chosenQfGImportItem);
 		unwrapFilename = false;
-	// Since we're not wrapping/unwrapping save files for QFG import screens,
-	// the name of the save file will almost certainly be over 12 characters in
-	// length. Compensate for that fact here, by cutting off the last character
-	// and searching for the file via the first 11 characters
-	if (g_sci->isQFGImportScreen()) {
-		name.deleteLastChar();
-		Common::String pattern = name + "*";
-
-		Common::SaveFileManager *saveFileMan = g_engine->getSaveFileManager();
-		Common::StringArray saveNames = saveFileMan->listSavefiles(pattern);
-
-		// There should be exactly one match for this search, otherwise throw a warning
-		if (saveNames.size() == 0) {
-			warning("QFG character import: No matches for %s", pattern.c_str());
-		} else if (saveNames.size() == 1) {
-			name = saveNames[0];
-		} else {
-			warning("QFG character import: More than 1 matches for %s, using the first one", pattern.c_str());
-			name = saveNames[0];
-		}
 	}
 
 	return file_open(s, name.c_str(), mode, unwrapFilename);


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