From 1a31d7da7ef04998e996b1e61d5f98725ffd0d2b Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Sat, 15 Jul 2006 21:22:07 +0000 Subject: Should fix loading of pakfiles. svn-id: r23516 --- engines/kyra/resource.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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()); } -- cgit v1.2.3