diff options
author | James Brown | 2002-06-16 04:09:22 +0000 |
---|---|---|
committer | James Brown | 2002-06-16 04:09:22 +0000 |
commit | f3ab5d82288aa14cef1b4f9824e6d9605dcbe686 (patch) | |
tree | 4cb6eb8767684155d2a9d7992e6acb931d034b2c /simon | |
parent | 6fb7585cf5ccda44efe3b6c8b445de3813785862 (diff) | |
download | scummvm-rg350-f3ab5d82288aa14cef1b4f9824e6d9605dcbe686.tar.gz scummvm-rg350-f3ab5d82288aa14cef1b4f9824e6d9605dcbe686.tar.bz2 scummvm-rg350-f3ab5d82288aa14cef1b4f9824e6d9605dcbe686.zip |
Fix Simon case sensitivity, work around Win32 SDL bug (hang on audio exit)
svn-id: r4421
Diffstat (limited to 'simon')
-rw-r--r-- | simon/simon.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/simon/simon.cpp b/simon/simon.cpp index 514b6a3dcc..d9a94df0a9 100644 --- a/simon/simon.cpp +++ b/simon/simon.cpp @@ -132,15 +132,15 @@ FILE *SimonState::fopen_maybe_lowercase(const char *filename) { 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 @@ FILE *SimonState::fopen_maybe_lowercase(const char *filename) { 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; } |