From 2ac551aa28dd0c7b339516a53135d6195ec0666f Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Fri, 14 Oct 2011 20:49:06 +1100 Subject: 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. --- engines/tsage/blue_force/blueforce_logic.cpp | 14 ++++++++++++++ engines/tsage/blue_force/blueforce_logic.h | 2 ++ 2 files changed, 16 insertions(+) (limited to 'engines/tsage/blue_force') 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 -- cgit v1.2.3