[Scummvm-cvs-logs] SF.net SVN: scummvm: [22388] scummvm/trunk/engines/scumm/he/script_v60he.cpp

kirben at users.sourceforge.net kirben at users.sourceforge.net
Mon May 8 06:11:06 CEST 2006


Revision: 22388
Author:   kirben
Date:     2006-05-08 06:10:49 -0700 (Mon, 08 May 2006)
ViewCVS:  http://svn.sourceforge.net/scummvm/?rev=22388&view=rev

Log Message:
-----------
Fix regression in lost, the middle directories were removed

Modified Paths:
--------------
    scummvm/trunk/engines/scumm/he/script_v60he.cpp
Modified: scummvm/trunk/engines/scumm/he/script_v60he.cpp
===================================================================
--- scummvm/trunk/engines/scumm/he/script_v60he.cpp	2006-05-08 11:41:32 UTC (rev 22387)
+++ scummvm/trunk/engines/scumm/he/script_v60he.cpp	2006-05-08 13:10:49 UTC (rev 22388)
@@ -422,13 +422,12 @@
 
 	// Strip path
 	int r = 0;
-	if (dst[0] == '.' && dst[1] == '/') {
+	if (dst[0] == '.' && dst[1] == '/') { // './'
 		r = 2;
-	} else if (dst[0] == 'c' && dst[1] == ':') {
-		for (r = len; r != 0; r--) {
-			if (dst[r - 1] == '/')
-				break;
-		}
+	} else if (dst[0] == 'c' && dst[1] == ':' && dst[3] == 'h') { // 'c:/hegames/'
+		r = 11;
+	} else if (dst[0] == 'c' && dst[1] == ':' && dst[3] == 'w') { // 'c:/windows/'
+		r = 11;
 	}
 
 	debug(1, "convertFilePath: converted filePath is %s", dst + r);


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