diff options
author | Paweł Kołodziejski | 2003-06-14 16:45:38 +0000 |
---|---|---|
committer | Paweł Kołodziejski | 2003-06-14 16:45:38 +0000 |
commit | a42fa9e25ce7d0a35016e483b0cf98e3512e98ea (patch) | |
tree | 6fe7eef64f0199628e3ee85218942aa74cb41c41 | |
parent | e3b2ca8e2fccb3d47e4fd6c87a88aec7dc72b2c6 (diff) | |
download | scummvm-rg350-a42fa9e25ce7d0a35016e483b0cf98e3512e98ea.tar.gz scummvm-rg350-a42fa9e25ce7d0a35016e483b0cf98e3512e98ea.tar.bz2 scummvm-rg350-a42fa9e25ce7d0a35016e483b0cf98e3512e98ea.zip |
fix for bug #749249, related with path of game data placed on root drive under win98
svn-id: r8478
-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 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__ |