From 10ff73e6e03a4b9117fd7035355ee28c2dffa4a4 Mon Sep 17 00:00:00 2001 From: Bastien Bouclet Date: Mon, 10 Dec 2018 19:11:25 +0100 Subject: [PATCH] ILLUSIONS: Push down the advanced detector include So the whole engine is not rebuilt when making changes to shared code. --- engines/illusions/detection.cpp | 9 +++++++++ engines/illusions/illusions.h | 13 ++----------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/engines/illusions/detection.cpp b/engines/illusions/detection.cpp index 3a9c77e845e8..024dea2641fe 100644 --- a/engines/illusions/detection.cpp +++ b/engines/illusions/detection.cpp @@ -40,6 +40,15 @@ static const PlainGameDescriptor illusionsGames[] = { namespace Illusions { +struct IllusionsGameDescription { + ADGameDescription desc; + int gameId; +}; + +int IllusionsEngine::getGameId() const { + return _gameDescription->gameId; +} + static const IllusionsGameDescription gameDescriptions[] = { { { diff --git a/engines/illusions/illusions.h b/engines/illusions/illusions.h index 4140c9c4fbe6..8110c686a558 100644 --- a/engines/illusions/illusions.h +++ b/engines/illusions/illusions.h @@ -36,12 +36,9 @@ #include "common/system.h" #include "common/winexe.h" #include "common/winexe_pe.h" -#include "engines/advancedDetector.h" #include "engines/engine.h" #include "graphics/surface.h" -struct ADGameDescription; - namespace Illusions { char *debugW2I(byte *wstr); @@ -64,6 +61,7 @@ class Cursor; class Dictionary; struct Fader; class FramesList; +struct IllusionsGameDescription; class Input; class Screen; class ScreenText; @@ -84,11 +82,6 @@ enum { kGameIdDuckman = 2 }; -struct IllusionsGameDescription { - ADGameDescription desc; - int gameId; -}; - class IllusionsEngine : public Engine { public: IllusionsEngine(OSystem *syst, const IllusionsGameDescription *gd); @@ -153,9 +146,7 @@ class IllusionsEngine : public Engine { int16 _menuChoiceOfs; - int getGameId() const { - return _gameDescription->gameId; - } + int getGameId() const; void runUpdateFunctions(); int updateActors(uint flags);