mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-15 06:08:35 +00:00
WAGE: Safety check on parsing main game file
This commit is contained in:
parent
c3bae66b56
commit
51dca83011
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user