aboutsummaryrefslogtreecommitdiff
path: root/common/file.cpp
diff options
context:
space:
mode:
authorMax Horn2003-04-30 12:43:56 +0000
committerMax Horn2003-04-30 12:43:56 +0000
commit81c3ade33193a226cc835d2e1dc905732923bff0 (patch)
treea60f57b6086a2c27f65b9651e30c2602fa0355c3 /common/file.cpp
parent42f156ddada4c6f51e1612e9b0f18ec7c9dd9cee (diff)
downloadscummvm-rg350-81c3ade33193a226cc835d2e1dc905732923bff0.tar.gz
scummvm-rg350-81c3ade33193a226cc835d2e1dc905732923bff0.tar.bz2
scummvm-rg350-81c3ade33193a226cc835d2e1dc905732923bff0.zip
more PalmOS changes
svn-id: r7220
Diffstat (limited to 'common/file.cpp')
-rw-r--r--common/file.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/common/file.cpp b/common/file.cpp
index a7a738b8c1..35307d5618 100644
--- a/common/file.cpp
+++ b/common/file.cpp
@@ -33,8 +33,8 @@ FILE *File::fopenNoCase(const char *filename, const char *directory, const char
if (buf[strlen(buf)-1] != ':' && buf[strlen(buf)-1] != '/')
#endif
-#ifndef __GP32__
- strcat(buf, "/");
+#if !defined(__GP32__) && !defined(__PALM_OS__)
+ strcat(buf, "/"); // prevent double /
#endif
}
strcat(buf, filename);
@@ -61,7 +61,9 @@ FILE *File::fopenNoCase(const char *filename, const char *directory, const char
#ifdef __MORPHOS__
if (buf[strlen(buf) - 1] != ':' && buf[strlen(buf) - 1] != '/')
#endif
- strcat(buf, "/");
+#ifndef __PALM_OS__
+ strcat(buf, "/"); // PALMOS
+#endif
}
strcat(buf, dirs[l]);
int8 len = strlen(buf);