From 73784c26b7737f4474ec33974fb3abe156370025 Mon Sep 17 00:00:00 2001 From: Strangerke Date: Sun, 27 Jul 2014 18:45:07 +0200 Subject: CGE2: Add work around for piram_/pirami issue --- engines/cge2/fileio.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'engines') 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]; } -- cgit v1.2.3