aboutsummaryrefslogtreecommitdiff
path: root/engines/avalanche
diff options
context:
space:
mode:
authorBastien Bouclet2018-05-01 12:48:05 +0200
committerBastien Bouclet2018-05-01 12:48:05 +0200
commiteedb53207da3a44a587e60941b6bfda3347219a7 (patch)
tree3fe72c987dccf4c72b5f6d42b3ba6e369353eac6 /engines/avalanche
parent527e068d26207d6322f55bbad6e946e5f1f50cc6 (diff)
downloadscummvm-rg350-eedb53207da3a44a587e60941b6bfda3347219a7.tar.gz
scummvm-rg350-eedb53207da3a44a587e60941b6bfda3347219a7.tar.bz2
scummvm-rg350-eedb53207da3a44a587e60941b6bfda3347219a7.zip
AVALANCHE: Push down AD includes
Diffstat (limited to 'engines/avalanche')
-rw-r--r--engines/avalanche/avalanche.cpp5
-rw-r--r--engines/avalanche/avalanche.h7
-rw-r--r--engines/avalanche/detection.cpp8
3 files changed, 10 insertions, 10 deletions
diff --git a/engines/avalanche/avalanche.cpp b/engines/avalanche/avalanche.cpp
index 29fb082da0..303fb0cff8 100644
--- a/engines/avalanche/avalanche.cpp
+++ b/engines/avalanche/avalanche.cpp
@@ -57,7 +57,6 @@ AvalancheEngine::AvalancheEngine(OSystem *syst, const AvalancheGameDescription *
_help = nullptr;
_highscore = nullptr;
- _platform = gd->desc.platform;
initVariables();
}
@@ -179,10 +178,6 @@ GUI::Debugger *AvalancheEngine::getDebugger() {
return _console;
}
-Common::Platform AvalancheEngine::getPlatform() const {
- return _platform;
-}
-
bool AvalancheEngine::hasFeature(EngineFeature f) const {
return (f == kSupportsSavingDuringRuntime) || (f == kSupportsLoadingDuringRuntime);
}
diff --git a/engines/avalanche/avalanche.h b/engines/avalanche/avalanche.h
index 6eb5e675cc..d50373b07a 100644
--- a/engines/avalanche/avalanche.h
+++ b/engines/avalanche/avalanche.h
@@ -48,10 +48,10 @@
#include "avalanche/mainmenu.h"
#include "avalanche/highscore.h"
+#include "common/error.h"
#include "common/serializer.h"
#include "engines/engine.h"
-#include "engines/advancedDetector.h"
#include "graphics/cursorman.h"
@@ -61,9 +61,7 @@ class RandomSource;
namespace Avalanche {
-struct AvalancheGameDescription {
- ADGameDescription desc;
-};
+struct AvalancheGameDescription;
static const int kSavegameVersion = 2;
@@ -132,7 +130,6 @@ protected:
private:
AvalancheConsole *_console;
- Common::Platform _platform;
public:
// For Thinkabout:
diff --git a/engines/avalanche/detection.cpp b/engines/avalanche/detection.cpp
index 64634dc017..7f3d4f88a8 100644
--- a/engines/avalanche/detection.cpp
+++ b/engines/avalanche/detection.cpp
@@ -35,6 +35,10 @@
namespace Avalanche {
+struct AvalancheGameDescription {
+ ADGameDescription desc;
+};
+
uint32 AvalancheEngine::getFeatures() const {
return _gameDescription->desc.flags;
}
@@ -43,6 +47,10 @@ const char *AvalancheEngine::getGameId() const {
return _gameDescription->desc.gameId;
}
+Common::Platform AvalancheEngine::getPlatform() const {
+ return _gameDescription->desc.platform;
+}
+
static const PlainGameDescriptor avalancheGames[] = {
{"avalanche", "Lord Avalot d'Argent"},
{0, 0}