diff options
author | Paul Gilbert | 2011-10-14 20:49:06 +1100 |
---|---|---|
committer | Paul Gilbert | 2011-10-14 20:49:06 +1100 |
commit | 2ac551aa28dd0c7b339516a53135d6195ec0666f (patch) | |
tree | e3790ceade166f7d0d0a96fd1a73fbf598fef509 /engines/tsage/blue_force | |
parent | 6811a3daffc2743d2d733050be9306dcbf419214 (diff) | |
download | scummvm-rg350-2ac551aa28dd0c7b339516a53135d6195ec0666f.tar.gz scummvm-rg350-2ac551aa28dd0c7b339516a53135d6195ec0666f.tar.bz2 scummvm-rg350-2ac551aa28dd0c7b339516a53135d6195ec0666f.zip |
TSAGE: Bugfix for Ringworld demo having save/restore buttons enabled in GMM
This splits checking if save and load are enabled to the individual game classes.
Diffstat (limited to 'engines/tsage/blue_force')
-rw-r--r-- | engines/tsage/blue_force/blueforce_logic.cpp | 14 | ||||
-rw-r--r-- | engines/tsage/blue_force/blueforce_logic.h | 2 |
2 files changed, 16 insertions, 0 deletions
diff --git a/engines/tsage/blue_force/blueforce_logic.cpp b/engines/tsage/blue_force/blueforce_logic.cpp index 156062d0d6..d413c2e035 100644 --- a/engines/tsage/blue_force/blueforce_logic.cpp +++ b/engines/tsage/blue_force/blueforce_logic.cpp @@ -240,6 +240,20 @@ Scene *BlueForceGame::createScene(int sceneNumber) { } } +/** + * Returns true if it is currently okay to restore a game + */ +bool BlueForceGame::canLoadGameStateCurrently() { + return true; +} + +/** + * Returns true if it is currently okay to save the game + */ +bool BlueForceGame::canSaveGameStateCurrently() { + return true; +} + void BlueForceGame::rightClick() { RightClickDialog *dlg = new RightClickDialog(); dlg->execute(); diff --git a/engines/tsage/blue_force/blueforce_logic.h b/engines/tsage/blue_force/blueforce_logic.h index 8764d0b856..2ebfc19c26 100644 --- a/engines/tsage/blue_force/blueforce_logic.h +++ b/engines/tsage/blue_force/blueforce_logic.h @@ -43,6 +43,8 @@ public: virtual Scene *createScene(int sceneNumber); virtual void rightClick(); virtual void processEvent(Event &event); + virtual bool canSaveGameStateCurrently(); + virtual bool canLoadGameStateCurrently(); }; #define OBJ_ARRAY_SIZE 10 |