From d3b0ff8ade3a147aa3ce78399fd66fb340b07584 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sun, 21 Jan 2007 20:24:38 +0000 Subject: Reduce dependency from common/advancedDetector.h svn-id: r25156 --- engines/parallaction/detection.cpp | 13 +++++++++++++ engines/parallaction/parallaction.h | 16 +++++----------- 2 files changed, 18 insertions(+), 11 deletions(-) (limited to 'engines/parallaction') diff --git a/engines/parallaction/detection.cpp b/engines/parallaction/detection.cpp index 3f51f7c834..d3faefe31c 100644 --- a/engines/parallaction/detection.cpp +++ b/engines/parallaction/detection.cpp @@ -30,6 +30,19 @@ #include "parallaction/parallaction.h" namespace Parallaction { + +struct PARALLACTIONGameDescription { + Common::ADGameDescription desc; + + int gameType; + uint32 features; +}; + +int Parallaction::getGameType() const { return _gameDescription->gameType; } +uint32 Parallaction::getFeatures() const { return _gameDescription->features; } +Common::Language Parallaction::getLanguage() const { return _gameDescription->desc.language; } +Common::Platform Parallaction::getPlatform() const { return _gameDescription->desc.platform; } + static GameList GAME_detectGames(const FSList &fslist); } diff --git a/engines/parallaction/parallaction.h b/engines/parallaction/parallaction.h index fee8c6cba5..c55da285a1 100644 --- a/engines/parallaction/parallaction.h +++ b/engines/parallaction/parallaction.h @@ -26,7 +26,6 @@ #include "engines/engine.h" #include "parallaction/defs.h" #include "parallaction/inventory.h" -#include "common/advancedDetector.h" namespace Parallaction { @@ -59,12 +58,7 @@ enum ParallactionGameType { GType_BRA }; -struct PARALLACTIONGameDescription { - Common::ADGameDescription desc; - - int gameType; - uint32 features; -}; +struct PARALLACTIONGameDescription; struct Job; typedef void (*JobFn)(void*, Job*); @@ -226,10 +220,10 @@ public: void changeCharacter(const char *name); public: - int getGameType() const { return _gameDescription->gameType; } - uint32 getFeatures() const { return _gameDescription->features; } - Common::Language getLanguage() const { return _gameDescription->desc.language; } - Common::Platform getPlatform() const { return _gameDescription->desc.platform; } + int getGameType() const; + uint32 getFeatures() const; + Common::Language getLanguage() const; + Common::Platform getPlatform() const; private: const PARALLACTIONGameDescription *_gameDescription; -- cgit v1.2.3