aboutsummaryrefslogtreecommitdiff
path: root/common/file.cpp
diff options
context:
space:
mode:
authorJonathan Gray2003-08-22 06:40:29 +0000
committerJonathan Gray2003-08-22 06:40:29 +0000
commita02eba1bee60281adad2918b0c0e275f20c87be1 (patch)
tree271d67bc6a91ce6332c0bdac88e2da86cf3fb665 /common/file.cpp
parent5018d206bcb6ab216e42a7c6c353cddbf10b95b9 (diff)
downloadscummvm-rg350-a02eba1bee60281adad2918b0c0e275f20c87be1.tar.gz
scummvm-rg350-a02eba1bee60281adad2918b0c0e275f20c87be1.tar.bz2
scummvm-rg350-a02eba1bee60281adad2918b0c0e275f20c87be1.zip
add sword2 cd dirs
svn-id: r9816
Diffstat (limited to 'common/file.cpp')
-rw-r--r--common/file.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/common/file.cpp b/common/file.cpp
index 78667f0c9a..3cd3e1eed7 100644
--- a/common/file.cpp
+++ b/common/file.cpp
@@ -57,6 +57,7 @@ FILE *File::fopenNoCase(const char *filename, const char *directory, const char
if (file)
return file;
+ // FIXME this should probably be engine specific...
const char *dirs[] = {
"",
"video/",
@@ -66,7 +67,13 @@ FILE *File::fopenNoCase(const char *filename, const char *directory, const char
"resource/",
"RESOURCE/",
"voices/",
- "VOICES/"
+ "VOICES/",
+ // sword2 stuff if user just copied files without putting
+ // them all into the same dir like original installer did
+ "CLUSTERS/",
+ "clusters/",
+ "SWORD2/",
+ "sword2/"
};
for (int dirIdx = 0; dirIdx < ARRAYSIZE(dirs); dirIdx++) {