diff options
author | Ruediger Hanke | 2002-09-17 21:45:13 +0000 |
---|---|---|
committer | Ruediger Hanke | 2002-09-17 21:45:13 +0000 |
commit | 068042781feca5ddd1a1cc0f36a8c842773d994a (patch) | |
tree | a42e081f02f4910ed4f79216229cc3101fe656f2 /common/file.cpp | |
parent | bc81fc7aa13a8bc71cfb8f8046385c71a411814f (diff) | |
download | scummvm-rg350-068042781feca5ddd1a1cc0f36a8c842773d994a.tar.gz scummvm-rg350-068042781feca5ddd1a1cc0f36a8c842773d994a.tar.bz2 scummvm-rg350-068042781feca5ddd1a1cc0f36a8c842773d994a.zip |
Appending a slash in all cases breaks some games on MOS
svn-id: r4961
Diffstat (limited to 'common/file.cpp')
-rw-r--r-- | common/file.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/common/file.cpp b/common/file.cpp index bce682a9be..7812d1f067 100644 --- a/common/file.cpp +++ b/common/file.cpp @@ -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]); |