From 95f46e389256ea6e4cc064b8b4af0b4db86d6d06 Mon Sep 17 00:00:00 2001 From: Andrei Prykhodko Date: Thu, 5 Jul 2018 12:06:57 +0300 Subject: PINK: fixed loading games after recent changes --- engines/pink/pink.cpp | 18 ++++++++++-------- 1 file 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; -- cgit v1.2.3