diff options
author | Andrei Prykhodko | 2018-07-05 12:06:57 +0300 |
---|---|---|
committer | Andrei Prykhodko | 2018-07-05 12:06:57 +0300 |
commit | 95f46e389256ea6e4cc064b8b4af0b4db86d6d06 (patch) | |
tree | 05b46180ad9f915bc9586f3976ff62ddb3b7fdbb | |
parent | c2854a83182b5d474b72ffd9d0c17d0b99c2218a (diff) | |
download | scummvm-rg350-95f46e389256ea6e4cc064b8b4af0b4db86d6d06.tar.gz scummvm-rg350-95f46e389256ea6e4cc064b8b4af0b4db86d6d06.tar.bz2 scummvm-rg350-95f46e389256ea6e4cc064b8b4af0b4db86d6d06.zip |
PINK: fixed loading games after recent changes
-rw-r--r-- | engines/pink/pink.cpp | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/engines/pink/pink.cpp b/engines/pink/pink.cpp index e7d4472683..1748b28c78 100644 --- a/engines/pink/pink.cpp +++ b/engines/pink/pink.cpp @@ -73,13 +73,15 @@ Common::Error PinkEngine::init() { _console = new Console(this); - const Common::String orbName = _desc.filesDescriptions[0].fileName; - const Common::String broName = _desc.filesDescriptions[1].fileName; - - if (isPeril()) - _bro = new BroFile(); - else - debug("This game doesn't need to use bro"); + Common::String orbName; + Common::String broName; + if (isPeril()) { + orbName = "PPTP.ORB"; + broName = "PPTP.BRO"; + _bro = new BroFile; + } else { + orbName = "HPP.ORB"; + } if (!_orb.open(orbName) || (_bro && !_bro->open(broName) && _orb.getTimestamp() == _bro->getTimestamp())) return Common::kNoGameDataFoundError; @@ -215,7 +217,7 @@ bool PinkEngine::checkValueOfVariable(Common::String &variable, Common::String & bool PinkEngine::loadCursors() { Common::PEResources exeResources; bool isPokus = !isPeril(); - Common::String fileName = isPokus ? _desc.filesDescriptions[1].fileName : _desc.filesDescriptions[2].fileName; + Common::String fileName = isPokus ? "hpp.exe" : "pptp.exe"; if (!exeResources.loadFromEXE(fileName)) return false; |