[Scummvm-cvs-logs] CVS: scummvm/common file.cpp,1.32,1.33

Pawel Kolodziejski aquadran at users.sourceforge.net
Sat Jun 14 09:46:17 CEST 2003


Update of /cvsroot/scummvm/scummvm/common
In directory sc8-pr-cvs1:/tmp/cvs-serv24797

Modified Files:
	file.cpp 
Log Message:
fix for bug #749249, related with path of game data placed on root drive under win98

Index: file.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/common/file.cpp,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -d -r1.32 -r1.33
--- file.cpp	28 May 2003 19:03:12 -0000	1.32
+++ file.cpp	14 Jun 2003 16:45:38 -0000	1.33
@@ -27,6 +27,12 @@
 	char buf[256];
 	char *ptr;
 
+	// Fix for Win98 issue related with game directory pointing to root drive ex. "c:\"
+	ptr = (char*)directory;
+	if ((ptr[1] == ':') && (ptr[2] == '\\') && (ptr[3] == 0)) {
+		ptr[2] = 0;
+	}
+
 	strcpy(buf, directory);
 	if (directory[0] != 0) {
 #ifdef __MORPHOS__





More information about the Scummvm-git-logs mailing list