aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/file.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/common/file.cpp b/common/file.cpp
index 011e167573..037871ad16 100644
--- a/common/file.cpp
+++ b/common/file.cpp
@@ -27,6 +27,12 @@ FILE *File::fopenNoCase(const char *filename, const char *directory, const char
char buf[256];
char *ptr;
+ // Fix for Win98 issue related with game directory pointing to root drive ex. "c:\"
+ ptr = (char*)directory;
+ if ((ptr[1] == ':') && (ptr[2] == '\\') && (ptr[3] == 0)) {
+ ptr[2] = 0;
+ }
+
strcpy(buf, directory);
if (directory[0] != 0) {
#ifdef __MORPHOS__