mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-04 16:26:53 +00:00
Appending a slash in all cases breaks some games on MOS
svn-id: r4961
This commit is contained in:
parent
bc81fc7aa1
commit
068042781f
@ -30,6 +30,9 @@ FILE *File::fopenNoCase(const char *filename, const char * directory, const char
|
||||
strcpy(buf, directory);
|
||||
if (directory[0] != 0) {
|
||||
strcpy(buf, directory);
|
||||
#ifdef __MORPHOS__
|
||||
if (buf[strlen(buf)-1] != ':' && buf[strlen(buf)-1] != '/')
|
||||
#endif
|
||||
strcat(buf, "/");
|
||||
}
|
||||
strcat(buf, filename);
|
||||
@ -51,6 +54,9 @@ FILE *File::fopenNoCase(const char *filename, const char * directory, const char
|
||||
strcpy(buf, directory);
|
||||
if (directory[0] != 0) {
|
||||
strcpy(buf, directory);
|
||||
#ifdef __MORPHOS__
|
||||
if (buf[strlen(buf)-1] != ':' && buf[strlen(buf)-1] != '/')
|
||||
#endif
|
||||
strcat(buf, "/");
|
||||
}
|
||||
strcat(buf, dirs[l]);
|
||||
|
Loading…
Reference in New Issue
Block a user