WAGE: Safety check on parsing main game file

This commit is contained in:
Eugene Sandulenko 2016-02-18 10:25:11 +01:00
parent c3bae66b56
commit 51dca83011

View File

@ -109,7 +109,8 @@ Common::Error WageEngine::run() {
// Your main event loop should be (invoked from) here.
_resManager = new Common::MacResManager();
_resManager->open(getGameFile());
if (!_resManager->open(getGameFile()))
error("Could not open %s as a resource fork", getGameFile());
_world = new World(this);