aboutsummaryrefslogtreecommitdiff
path: root/engines/saga/saga.h
diff options
context:
space:
mode:
authorEugene Sandulenko2006-10-02 22:21:57 +0000
committerEugene Sandulenko2006-10-02 22:21:57 +0000
commit988ddf2b3664b37f20ddad46e65bc789145f1d80 (patch)
treebdd6e4b50eb3c8791081b90a1bb64f9110f58c6f /engines/saga/saga.h
parent574665be4b98675016bbb6aefcc1a00b70ee025c (diff)
downloadscummvm-rg350-988ddf2b3664b37f20ddad46e65bc789145f1d80.tar.gz
scummvm-rg350-988ddf2b3664b37f20ddad46e65bc789145f1d80.tar.bz2
scummvm-rg350-988ddf2b3664b37f20ddad46e65bc789145f1d80.zip
Unify SAGA/AGOS detection code so other engines could also reuse it
without further code duplication. svn-id: r24083
Diffstat (limited to 'engines/saga/saga.h')
-rw-r--r--engines/saga/saga.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/engines/saga/saga.h b/engines/saga/saga.h
index aed22a06f5..d0b3291b93 100644
--- a/engines/saga/saga.h
+++ b/engines/saga/saga.h
@@ -31,6 +31,7 @@
#include "saga/gfx.h"
#include "saga/list.h"
+#include "common/advancedDetector.h"
namespace Saga {
@@ -359,7 +360,7 @@ public:
//current game description
int _gameNumber;
- GameDescription *_gameDescription;
+ SAGAGameDescription *_gameDescription;
Common::String _gameTitle;
Common::Rect _displayClip;
@@ -372,8 +373,8 @@ public:
public:
bool initGame(void);
public:
- const GameDescription *getGameDescription() const { return _gameDescription; }
- const bool isBigEndian() const { return (_gameDescription->features & GF_BIG_ENDIAN_DATA) != 0; }
+ const SAGAGameDescription *getGameDescription() const { return _gameDescription; }
+ const bool isBigEndian() const { return (_gameDescription->desc.features & GF_BIG_ENDIAN_DATA) != 0; }
const bool isMacResources() const { return (getPlatform() == Common::kPlatformMacintosh); }
const GameResourceDescription *getResourceDescription() { return _gameDescription->resourceDescription; }
const GameSoundInfo *getVoiceInfo() const { return _gameDescription->voiceInfo; }
@@ -386,11 +387,11 @@ public:
}
int getFontsCount() const { return _gameDescription->fontsCount; }
- int getGameId() const { return _gameDescription->gameId; }
- int getGameType() const { return _gameDescription->gameType; }
- uint32 getFeatures() const { return _gameDescription->features; }
- Common::Language getLanguage() const { return _gameDescription->language; }
- Common::Platform getPlatform() const { return _gameDescription->platform; }
+ int getGameId() const { return _gameDescription->desc.gameId; }
+ int getGameType() const { return _gameDescription->desc.gameType; }
+ uint32 getFeatures() const { return _gameDescription->desc.features; }
+ Common::Language getLanguage() const { return _gameDescription->desc.language; }
+ Common::Platform getPlatform() const { return _gameDescription->desc.platform; }
int getGameNumber() const { return _gameNumber; }
int getStartSceneNumber() const { return _gameDescription->startSceneNumber; }