diff options
Diffstat (limited to 'engines/gargoyle/gargoyle.cpp')
-rw-r--r-- | engines/gargoyle/gargoyle.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/engines/gargoyle/gargoyle.cpp b/engines/gargoyle/gargoyle.cpp index 7953c684f8..561f14ae01 100644 --- a/engines/gargoyle/gargoyle.cpp +++ b/engines/gargoyle/gargoyle.cpp @@ -24,6 +24,7 @@ #include "common/config-manager.h" #include "common/debug-channels.h" #include "common/events.h" +#include "common/file.h" #include "engines/util.h" #include "graphics/scaler.h" #include "graphics/thumbnail.h" @@ -54,8 +55,10 @@ void GargoyleEngine::initialize() { Common::Error GargoyleEngine::run() { initialize(); - // TODO: Pass proper gamefile - runGame(nullptr); + Common::File f; + if (!f.open(getFilename())) + error("Could not open game file"); + runGame(&f); return Common::kNoError; } |