diff options
author | Strangerke | 2016-01-25 00:35:38 +0100 |
---|---|---|
committer | Strangerke | 2016-01-25 00:35:38 +0100 |
commit | 2f03bc77764edca085753ff99ea363de34bde1df (patch) | |
tree | 3b05b04ff326cea09bb29c4bef363658bc1f131c /engines/lab | |
parent | fb34336863ec8942ef7365c5decfdafcb020bc6a (diff) | |
download | scummvm-rg350-2f03bc77764edca085753ff99ea363de34bde1df.tar.gz scummvm-rg350-2f03bc77764edca085753ff99ea363de34bde1df.tar.bz2 scummvm-rg350-2f03bc77764edca085753ff99ea363de34bde1df.zip |
LAB: Add a workaround to load the right file in rooms 121 & 122 (Dos and Windows)
Diffstat (limited to 'engines/lab')
-rw-r--r-- | engines/lab/resource.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/engines/lab/resource.cpp b/engines/lab/resource.cpp index ed0cb37c67..aae369fbae 100644 --- a/engines/lab/resource.cpp +++ b/engines/lab/resource.cpp @@ -143,7 +143,14 @@ void Resource::readViews(uint16 roomNum) { } Common::String Resource::translateFileName(const Common::String filename) { - Common::String upperFilename = filename; + Common::String upperFilename; + + // The DOS and Windows version aren't looking for the right file, + if (!filename.compareToIgnoreCase("P:ZigInt/BLK") && (_vm->getPlatform() != Common::kPlatformAmiga)) + upperFilename = "P:ZigInt/ZIGINT.BLK"; + else + upperFilename = filename; + upperFilename.toUppercase(); Common::String fileNameStrFinal; @@ -211,7 +218,7 @@ Common::String Resource::translateFileName(const Common::String filename) { Common::File *Resource::openDataFile(const Common::String filename, uint32 fileHeader) { Common::File *dataFile = new Common::File(); dataFile->open(translateFileName(filename)); - warning("%s", filename.c_str()); + if (!dataFile->isOpen()) { // The DOS version is known to have some missing files if (_vm->getPlatform() == Common::kPlatformDOS) { |