PINK: Warn when the timestamps mismatch

This commit is contained in:
Henrik "Henke37" Andersson 2020-07-29 18:45:17 +02:00 committed by Eugene Sandulenko
parent adb725c223
commit 093bee1889

View File

@ -94,8 +94,16 @@ Common::Error PinkEngine::init() {
orbName = "HPP.ORB";
}
if (!_orb.open(orbName) || (_bro && !_bro->open(broName) && _orb.getTimestamp() == _bro->getTimestamp()))
if (!_orb.open(orbName))
return Common::kNoGameDataFoundError;
if (_bro) {
if (!_bro->open(broName))
return Common::kNoGameDataFoundError;
if (_orb.getTimestamp() != _bro->getTimestamp()) {
warning("ORB and BRO timestamp mismatch. %lx != %lx", _orb.getTimestamp(), _bro->getTimestamp());
return Common::kNoGameDataFoundError;
}
}
if (!loadCursors())
return Common::kNoGameDataFoundError;