aboutsummaryrefslogtreecommitdiff
path: root/engines/gargoyle/gargoyle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/gargoyle/gargoyle.cpp')
-rw-r--r--engines/gargoyle/gargoyle.cpp14
1 files changed, 2 insertions, 12 deletions
diff --git a/engines/gargoyle/gargoyle.cpp b/engines/gargoyle/gargoyle.cpp
index b46f2fc377..3457f5fa63 100644
--- a/engines/gargoyle/gargoyle.cpp
+++ b/engines/gargoyle/gargoyle.cpp
@@ -28,16 +28,14 @@
#include "graphics/scaler.h"
#include "graphics/thumbnail.h"
#include "gargoyle/gargoyle.h"
-#include "gargoyle/interps/scott/scott.h"
namespace Gargoyle {
GargoyleEngine::GargoyleEngine(OSystem *syst, const GargoyleGameDescription *gameDesc) :
- _gameDescription(gameDesc), Engine(syst), _interpreter(nullptr) {
+ _gameDescription(gameDesc), Engine(syst) {
}
GargoyleEngine::~GargoyleEngine() {
- delete _interpreter;
}
void GargoyleEngine::initialize() {
@@ -48,19 +46,11 @@ void GargoyleEngine::initialize() {
DebugMan.addDebugChannel(kDebugSound, "sound", "Sound and Music handling");
initGraphics(640, 480, false);
-
- switch (getInterpreterType()) {
- case INTERPRETER_SCOTT:
- _interpreter = new Scott::Scott();
- break;
- default:
- error("Unknown interpreter type");
- }
}
Common::Error GargoyleEngine::run() {
initialize();
- _interpreter->execute();
+ main();
return Common::kNoError;
}