aboutsummaryrefslogtreecommitdiff
path: root/engines/parallaction
diff options
context:
space:
mode:
authorEugene Sandulenko2007-01-21 20:24:38 +0000
committerEugene Sandulenko2007-01-21 20:24:38 +0000
commitd3b0ff8ade3a147aa3ce78399fd66fb340b07584 (patch)
treee0a8429b516c22e364bca025cd30604f905615b5 /engines/parallaction
parent01a5faa6a0ba89b7f774efe33839a077eeaa5f9d (diff)
downloadscummvm-rg350-d3b0ff8ade3a147aa3ce78399fd66fb340b07584.tar.gz
scummvm-rg350-d3b0ff8ade3a147aa3ce78399fd66fb340b07584.tar.bz2
scummvm-rg350-d3b0ff8ade3a147aa3ce78399fd66fb340b07584.zip
Reduce dependency from common/advancedDetector.h
svn-id: r25156
Diffstat (limited to 'engines/parallaction')
-rw-r--r--engines/parallaction/detection.cpp13
-rw-r--r--engines/parallaction/parallaction.h16
2 files changed, 18 insertions, 11 deletions
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;