Skip to content

Commit

Permalink
ILLUSIONS: Push down the advanced detector include
Browse files Browse the repository at this point in the history
So the whole engine is not rebuilt when making changes to shared code.
  • Loading branch information
bgK committed Dec 10, 2018
1 parent 0d1800b commit 10ff73e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
9 changes: 9 additions & 0 deletions engines/illusions/detection.cpp
Expand Up @@ -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[] = {
{
{
Expand Down
13 changes: 2 additions & 11 deletions engines/illusions/illusions.h
Expand Up @@ -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);
Expand All @@ -64,6 +61,7 @@ class Cursor;
class Dictionary;
struct Fader;
class FramesList;
struct IllusionsGameDescription;
class Input;
class Screen;
class ScreenText;
Expand All @@ -84,11 +82,6 @@ enum {
kGameIdDuckman = 2
};

struct IllusionsGameDescription {
ADGameDescription desc;
int gameId;
};

class IllusionsEngine : public Engine {
public:
IllusionsEngine(OSystem *syst, const IllusionsGameDescription *gd);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 10ff73e

Please sign in to comment.