aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorStrangerke2014-07-27 18:45:07 +0200
committerStrangerke2014-07-27 18:45:07 +0200
commit73784c26b7737f4474ec33974fb3abe156370025 (patch)
tree8971b72f533826aee5cf8e41ce95986bedcd082a /engines
parentc394a685891cfab7d5f59233a5ca82cd0db92833 (diff)
downloadscummvm-rg350-73784c26b7737f4474ec33974fb3abe156370025.tar.gz
scummvm-rg350-73784c26b7737f4474ec33974fb3abe156370025.tar.bz2
scummvm-rg350-73784c26b7737f4474ec33974fb3abe156370025.zip
CGE2: Add work around for piram_/pirami issue
Diffstat (limited to 'engines')
-rw-r--r--engines/cge2/fileio.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/cge2/fileio.cpp b/engines/cge2/fileio.cpp
index 257e977d45..11a01c67fb 100644
--- a/engines/cge2/fileio.cpp
+++ b/engines/cge2/fileio.cpp
@@ -156,6 +156,12 @@ BtKeypack *ResourceManager::find(const char *key) {
if (scumm_stricmp((const char *)key, (const char *)pg->_leaf[i]._key) <= 0)
break;
}
+
+ // FIXME: Terrible hack to work around a mix between 24piram_ and 24pirami
+ if (!strcmp(key, "24piram_.SPR") && (scumm_stricmp((const char *)key, (const char *)pg->_leaf[i]._key) < 0))
+ ++i;
+ //
+
_buff[lev]._index = i;
return &pg->_leaf[i];
}