aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schickel2006-07-15 21:22:07 +0000
committerJohannes Schickel2006-07-15 21:22:07 +0000
commit1a31d7da7ef04998e996b1e61d5f98725ffd0d2b (patch)
treed688fa8b5c1417670182fa26bb5a3d36d66a292f
parent1ad8d3ee6eb06d75b7509c3695f3e9f3de4a6f3a (diff)
downloadscummvm-rg350-1a31d7da7ef04998e996b1e61d5f98725ffd0d2b.tar.gz
scummvm-rg350-1a31d7da7ef04998e996b1e61d5f98725ffd0d2b.tar.bz2
scummvm-rg350-1a31d7da7ef04998e996b1e61d5f98725ffd0d2b.zip
Should fix loading of pakfiles.
svn-id: r23516
-rw-r--r--engines/kyra/resource.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/kyra/resource.cpp b/engines/kyra/resource.cpp
index b011ed3e7c..fd6e8cab2b 100644
--- a/engines/kyra/resource.cpp
+++ b/engines/kyra/resource.cpp
@@ -71,7 +71,9 @@ Resource::Resource(KyraEngine *engine) {
}
for (FSList::const_iterator file = fslist.begin(); file != fslist.end(); ++file) {
- if (file->displayName().hasSuffix("PAK") || file->displayName().hasSuffix("APK")) {
+ Common::String filename = file->displayName();
+ filename.toUppercase();
+ if (filename.hasSuffix("PAK") || filename.hasSuffix("APK")) {
if (!loadPakFile(file->displayName())) {
error("couldn't open pakfile '%s'", file->displayName().c_str());
}