[Scummvm-cvs-logs] CVS: scummvm/simon simon.cpp,1.33,1.34
James Brown
ender at users.sourceforge.net
Sat Jun 15 21:10:01 CEST 2002
Update of /cvsroot/scummvm/scummvm/simon
In directory usw-pr-cvs1:/tmp/cvs-serv23878/simon
Modified Files:
simon.cpp
Log Message:
Fix Simon case sensitivity, work around Win32 SDL bug (hang on audio exit)
Index: simon.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/simon/simon.cpp,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -d -r1.33 -r1.34
--- simon.cpp 6 Jun 2002 07:12:17 -0000 1.33
+++ simon.cpp 16 Jun 2002 04:09:22 -0000 1.34
@@ -132,15 +132,15 @@
const char *s = _game_path;
strcpy(buf, s); strcat(buf, filename);
- strcpy(dotbuf, buf); strcat(dotbuf, "."); // '.' appended version
- // for dumb vfat drivers
+ strcpy(dotbuf, buf); strcat(dotbuf, "."); // '.' appended version
+ // for dumb vfat drivers
/* original filename */
in = fopen(buf, "rb");
if (in) return in;
/* lowercase original filename */
- e = buf; do *e = tolower(*e); while(*e++);
+ e = buf + strlen(s); do *e = tolower(*e); while(*e++);
in = fopen(buf, "rb");
if (in) return in;
@@ -152,9 +152,9 @@
if (in) return in;
/* lowercase dot appended */
- e = dotbuf; do *e = tolower(*e); while(*e++);
+ e = dotbuf + strlen(s); do *e = tolower(*e); while(*e++);
in = fopen(dotbuf, "rb");
- warning("loading %s\n", dotbuf);
+
return in;
}
More information about the Scummvm-git-logs
mailing list