From 5c4016b4820cced49c3d56e4ef2c626acc511ec2 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Tue, 8 Jan 2019 00:05:11 +0100 Subject: GRIFFON: Implemented cheat mode via debug console --- engines/griffon/griffon.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'engines/griffon/griffon.cpp') diff --git a/engines/griffon/griffon.cpp b/engines/griffon/griffon.cpp index 17cb048ac2..f1ba852659 100644 --- a/engines/griffon/griffon.cpp +++ b/engines/griffon/griffon.cpp @@ -31,6 +31,7 @@ #include "engines/util.h" #include "griffon/griffon.h" +#include "griffon/console.h" namespace Griffon { @@ -40,6 +41,8 @@ GriffonEngine::GriffonEngine(OSystem *syst) : Engine(syst) { _rnd = new Common::RandomSource("griffon"); + _console = nullptr; + _shouldQuit = false; } @@ -50,6 +53,8 @@ GriffonEngine::~GriffonEngine() { Common::Error GriffonEngine::run() { initGraphics(320, 240, new Graphics::PixelFormat(4, 8, 8, 8, 8, 24, 16, 8, 0)); + _console = new Console(); + griffon_main(); return Common::kNoError; -- cgit v1.2.3