diff options
author | Johannes Schickel | 2007-01-25 14:38:11 +0000 |
---|---|---|
committer | Johannes Schickel | 2007-01-25 14:38:11 +0000 |
commit | f7c6643841d85334c57df7687eb1caba014f1019 (patch) | |
tree | 927c2b61515e2d032c197b5c58dea662ba041ae8 | |
parent | 604077827f44d027e7c3afd3200afe1a901e1c2a (diff) | |
download | scummvm-rg350-f7c6643841d85334c57df7687eb1caba014f1019.tar.gz scummvm-rg350-f7c6643841d85334c57df7687eb1caba014f1019.tar.bz2 scummvm-rg350-f7c6643841d85334c57df7687eb1caba014f1019.zip |
Support for loading the correct EMC pak file in the FM-Towns version.
svn-id: r25190
-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; + } + } + } } } |