Patch #589718: Simon2Win startup (by eriktorbjorn)

svn-id: r4700
This commit is contained in:
James Brown 2002-08-04 16:21:28 +00:00
parent f166da98fb
commit ac7e6a15c1

View File

@ -98,11 +98,14 @@ FILE *SimonState::fopen_maybe_lowercase(const char *filename)
char buf[256], dotbuf[256], *e;
const char *s = _game_path;
if (filename == NULL || *filename == '\0')
return NULL;
strcpy(buf, s);
strcat(buf, filename);
strcpy(dotbuf, buf);
strcat(dotbuf, "."); // '.' appended version
// for dumb vfat drivers
// for dumb vfat drivers
/* original filename */
in = fopen(buf, "rb");