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

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Thu Dec 31 15:59:30 CET 2009


Revision: 46800
          http://scummvm.svn.sourceforge.net/scummvm/?rev=46800&view=rev
Author:   thebluegr
Date:     2009-12-31 14:59:30 +0000 (Thu, 31 Dec 2009)

Log Message:
-----------
Changed kValidPath() to always return true, regardless of the value of savePath (so that it works with both SCI11 and SCI32 games)

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

Modified: scummvm/trunk/engines/sci/engine/kfile.cpp
===================================================================
--- scummvm/trunk/engines/sci/engine/kfile.cpp	2009-12-31 12:47:42 UTC (rev 46799)
+++ scummvm/trunk/engines/sci/engine/kfile.cpp	2009-12-31 14:59:30 UTC (rev 46800)
@@ -592,12 +592,10 @@
 reg_t kValidPath(EngineState *s, int argc, reg_t *argv) {
 	Common::String path = s->_segMan->getString(argv[0]);
 
-	// FIXME: For now, we only accept the (fake) dir "" as a valid path.
-	s->r_acc = make_reg(0, path == "");
-
 	debug(3, "kValidPath(%s) -> %d", path.c_str(), s->r_acc.offset);
 
-	return s->r_acc;
+	// Always return true
+	return make_reg(0, 1);
 }
 
 enum {


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