diff options
author | Eugene Sandulenko | 2007-02-10 17:10:55 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2007-02-10 17:10:55 +0000 |
commit | 90a7cbd6d7f508297a895e9e22ebb7c4e6cf4d9a (patch) | |
tree | dce0406065501516a0957582c37df3608770b34a /engines/agi | |
parent | e7c98ad5d6249f60c0daa22078a0172c0d9e5995 (diff) | |
download | scummvm-rg350-90a7cbd6d7f508297a895e9e22ebb7c4e6cf4d9a.tar.gz scummvm-rg350-90a7cbd6d7f508297a895e9e22ebb7c4e6cf4d9a.tar.bz2 scummvm-rg350-90a7cbd6d7f508297a895e9e22ebb7c4e6cf4d9a.zip |
Get rid of AGI_AMIGA and use platform setting instead.
svn-id: r25469
Diffstat (limited to 'engines/agi')
-rw-r--r-- | engines/agi/agi.cpp | 2 | ||||
-rw-r--r-- | engines/agi/agi.h | 6 | ||||
-rw-r--r-- | engines/agi/detection.cpp | 10 |
3 files changed, 11 insertions, 7 deletions
diff --git a/engines/agi/agi.cpp b/engines/agi/agi.cpp index 07c5582446..e421538cd7 100644 --- a/engines/agi/agi.cpp +++ b/engines/agi/agi.cpp @@ -441,7 +441,7 @@ int AgiEngine::agiDetectGame() { assert(_gameDescription != NULL); - _opt.amigaMode = ((getFeatures() & AGI_AMIGA) == AGI_AMIGA); + _opt.amigaMode = (getPlatform() == Common::kPlatformAmiga); _opt.agdsMode = ((getFeatures() & AGI_AGDS) == AGI_AGDS); _opt.agimouse = ((getFeatures() & AGI_MOUSE) == AGI_MOUSE); diff --git a/engines/agi/agi.h b/engines/agi/agi.h index 88d93d019e..3ee1e0a338 100644 --- a/engines/agi/agi.h +++ b/engines/agi/agi.h @@ -104,9 +104,8 @@ enum AgiGameType { }; enum AgiGameFeatures { - AGI_AMIGA = 1 << 0, - AGI_MOUSE = 1 << 1, - AGI_AGDS = 1 << 2 + AGI_MOUSE = 1 << 0, + AGI_AGDS = 1 << 1 }; @@ -526,6 +525,7 @@ public: const AGIGameDescription *_gameDescription; uint32 getFeatures() const; uint16 getVersion() const; + Common::Platform getPlatform() const; private: diff --git a/engines/agi/detection.cpp b/engines/agi/detection.cpp index 04b9b9ea3c..88db486b50 100644 --- a/engines/agi/detection.cpp +++ b/engines/agi/detection.cpp @@ -44,6 +44,10 @@ uint32 AgiEngine::getFeatures() const { return _gameDescription->features; } +Common::Platform AgiEngine::getPlatform() const { + return _gameDescription->desc.platform; +} + uint16 AgiEngine::getVersion() const { return _gameDescription->version; } @@ -497,7 +501,7 @@ static const AGIGameDescription gameDescriptions[] = { Common::kPlatformAmiga, }, GType_V2, - AGI_AMIGA, + 0, 0x2440, }, @@ -876,7 +880,7 @@ static const AGIGameDescription gameDescriptions[] = { Common::kPlatformAmiga, }, GType_V3, - AGI_AMIGA, + 0, 0x3149, }, @@ -1327,7 +1331,7 @@ static const AGIGameDescription gameDescriptions[] = { Common::kPlatformAmiga, }, GType_V2, - AGI_AMIGA, + 0, 0x2936, }, |