diff options
-rw-r--r-- | engines/kyra/resource.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/engines/kyra/resource.cpp b/engines/kyra/resource.cpp index 829c969394..d69b1c0dad 100644 --- a/engines/kyra/resource.cpp +++ b/engines/kyra/resource.cpp @@ -96,6 +96,20 @@ Resource::Resource(KyraEngine *engine) { } } } + + if (_engine->gameFlags().platform == Common::kPlatformFMTowns) { + Common::List<ResourceFile*>::iterator start = _pakfiles.begin(); + uint unloadHash = (_engine->gameFlags().lang == Common::EN_ANY) ? Common::hashit_lower("JMC.PAK") : Common::hashit_lower("EMC.PAK"); + + for (;start != _pakfiles.end(); ++start) { + if ((*start)->filename() == unloadHash) { + delete *start; + *start = 0; + _pakfiles.erase(start); + break; + } + } + } } } |