KYRA: fix mt-32 sysex loading for LOL floppy

svn-id: r35434
This commit is contained in:
Florian Kagerer 2008-12-19 07:32:08 +00:00
parent 91e386c584
commit 83194b2188
3 changed files with 9 additions and 2 deletions

View File

@ -91,6 +91,11 @@ bool Resource::reset() {
} else if (_vm->game() == GI_LOL) {
if (_vm->gameFlags().useInstallerPackage)
_files.add("installer", loadInstallerArchive("WESTWOOD", "%d", 0), 2, false);
// mouse pointer, fonts, etc. required for initializing
loadPakFile("general.pak");
if (_vm->gameFlags().isTalkie)
loadPakFile("startup.pak");
return true;
}

View File

@ -138,7 +138,7 @@ Common::SeekableReadStream *CachedArchive::openFile(const Common::String &name)
bool ResLoaderPak::checkFilename(Common::String filename) const {
filename.toUppercase();
return (filename.hasSuffix(".PAK") || filename.hasSuffix(".APK") || filename.hasSuffix(".VRM") || filename.hasSuffix(".TLK") || filename.equalsIgnoreCase(StaticResource::staticDataFilename()));
return (filename.hasSuffix(".PAK") || filename.hasSuffix(".APK") || filename.hasSuffix(".VRM") || filename.hasSuffix(".CMP") || filename.hasSuffix(".TLK") || filename.equalsIgnoreCase(StaticResource::staticDataFilename()));
}
bool ResLoaderPak::isLoadable(const Common::String &filename, Common::SeekableReadStream &stream) const {

View File

@ -515,8 +515,10 @@ bool SoundMidiPC::init() {
if (_vm->gameFlags().isTalkie)
pakFile = "ENG/STARTUP.PAK";
else if (_vm->gameFlags().useInstallerPackage)
pakFile = "INTROVOC.CMP";
else
pakFile = "STARTUP.PAK";
pakFile = "INTROVOC.PAK";
}
if (!midiFile)