ILLUSIONS: Push down the advanced detector include

So the whole engine is not rebuilt when making changes to shared code.
This commit is contained in:
Bastien Bouclet 2018-12-10 19:11:25 +01:00
parent 0d1800b605
commit 10ff73e6e0
2 changed files with 11 additions and 11 deletions

View File

@ -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[] = {
{
{

View File

@ -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 @@ public:
int16 _menuChoiceOfs;
int getGameId() const {
return _gameDescription->gameId;
}
int getGameId() const;
void runUpdateFunctions();
int updateActors(uint flags);