aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorMax Horn2006-12-19 13:50:34 +0000
committerMax Horn2006-12-19 13:50:34 +0000
commitd8d32812c8c1d4045622e63eaecb5805c7504004 (patch)
tree342bef8f77fd9f4d723f753971ba1be5147900a9 /engines
parentd82d2c4513a31d46674f0b6cd66c1a2e728c6af7 (diff)
downloadscummvm-rg350-d8d32812c8c1d4045622e63eaecb5805c7504004.tar.gz
scummvm-rg350-d8d32812c8c1d4045622e63eaecb5805c7504004.tar.bz2
scummvm-rg350-d8d32812c8c1d4045622e63eaecb5805c7504004.zip
Merged SagaEngine::postInitGame() into SagaEngine::initGame()
svn-id: r24887
Diffstat (limited to 'engines')
-rw-r--r--engines/saga/game.cpp18
-rw-r--r--engines/saga/saga.h1
2 files changed, 6 insertions, 13 deletions
diff --git a/engines/saga/game.cpp b/engines/saga/game.cpp
index 5e180d595f..2fce0bd59b 100644
--- a/engines/saga/game.cpp
+++ b/engines/saga/game.cpp
@@ -60,17 +60,6 @@ using Common::ADGameDescription;
#include "sagagame.cpp"
-bool SagaEngine::postInitGame() {
- _gameDisplayInfo = *_gameDescription->gameDisplayInfo;
- _displayClip.right = _gameDisplayInfo.logicalWidth;
- _displayClip.bottom = _gameDisplayInfo.logicalHeight;
-
- if (!_resource->createContexts()) {
- return false;
- }
- return true;
-}
-
bool SagaEngine::initGame() {
int i = Common::real_ADVANCED_DETECTOR_DETECT_INIT_GAME(
(const byte *)gameDescriptions,
@@ -79,7 +68,12 @@ bool SagaEngine::initGame() {
saga_games
);
_gameDescription = &gameDescriptions[i];
- return postInitGame();
+
+ _gameDisplayInfo = *_gameDescription->gameDisplayInfo;
+ _displayClip.right = _gameDisplayInfo.logicalWidth;
+ _displayClip.bottom = _gameDisplayInfo.logicalHeight;
+
+ return _resource->createContexts();
}
DetectedGameList GAME_detectGames(const FSList &fslist) {
diff --git a/engines/saga/saga.h b/engines/saga/saga.h
index 0cefe76caf..4d26c960d7 100644
--- a/engines/saga/saga.h
+++ b/engines/saga/saga.h
@@ -372,7 +372,6 @@ public:
public:
bool initGame(void);
- bool postInitGame(void);
public:
const SAGAGameDescription *getGameDescription() const { return _gameDescription; }
const bool isBigEndian() const { return (_gameDescription->features & GF_BIG_ENDIAN_DATA) != 0; }