diff options
Diffstat (limited to 'common')
-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]); |