[Scummvm-cvs-logs] CVS: scummvm resource.cpp,1.97,1.98

Max Horn fingolfin at users.sourceforge.net
Wed Jul 10 09:39:07 CEST 2002


Update of /cvsroot/scummvm/scummvm
In directory usw-pr-cvs1:/tmp/cvs-serv14833

Modified Files:
	resource.cpp 
Log Message:
indent run

Index: resource.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/resource.cpp,v
retrieving revision 1.97
retrieving revision 1.98
diff -u -d -r1.97 -r1.98
--- resource.cpp	9 Jul 2002 14:31:00 -0000	1.97
+++ resource.cpp	10 Jul 2002 16:38:38 -0000	1.98
@@ -174,17 +174,18 @@
 	char buf[256];
 
 	debug(9, "openResourceFile(%s)", filename);
-	strcpy(buf, filename);
-        printf("asked to open %s\n", filename);
+
 	if (_fileHandle != NULL) {
 		fileClose(_fileHandle);
 		_fileHandle = NULL;
 	}
 
+	strcpy(buf, filename);
 	_fileHandle = fileOpen(buf, 1);
 	if (!_fileHandle) {
-                char *e=strrchr(buf, '/');
-		if (!e) e=buf; 
+		char *e = strrchr(buf, '/');
+		if (!e)
+			e = buf;
 		do
 			*e = tolower(*e);
 		while (*e++);
@@ -192,8 +193,9 @@
 	}
 
 	if (!_fileHandle) {
-                char *e=strrchr(buf, '/');
-		if (!e) e=buf;
+		char *e = strrchr(buf, '/');
+		if (!e)
+			e = buf;
 		do
 			*e = toupper(*e);
 		while (*e++);





More information about the Scummvm-git-logs mailing list