aboutsummaryrefslogtreecommitdiff
path: root/engines/engine.h
diff options
context:
space:
mode:
authorathrxx2011-06-25 15:41:58 +0200
committerathrxx2011-06-25 15:54:36 +0200
commit1a05efa8eda02eb2c40432e19d77c6e507c86453 (patch)
tree5a3886669cf790ef7c9efe0562b132c48602a15d /engines/engine.h
parent5a2bc12f269a04a1b703112eaef7cf499c70884d (diff)
downloadscummvm-rg350-1a05efa8eda02eb2c40432e19d77c6e507c86453.tar.gz
scummvm-rg350-1a05efa8eda02eb2c40432e19d77c6e507c86453.tar.bz2
scummvm-rg350-1a05efa8eda02eb2c40432e19d77c6e507c86453.zip
GUI: fix bug #2822778
(Savegames now get loaded after GMM dialogue execution. This avoids mouse cursor glitches (e.g. mouse cursors which get changed during loadGameState() being popped when the dialogue closes).
Diffstat (limited to 'engines/engine.h')
-rw-r--r--engines/engine.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/engines/engine.h b/engines/engine.h
index 06b7f7dedd..2796df5c4f 100644
--- a/engines/engine.h
+++ b/engines/engine.h
@@ -82,6 +82,13 @@ private:
*/
int32 _engineStartTime;
+ /**
+ * Save slot selected via global main menu.
+ * This slot will be loaded after main menu execution (not from inside
+ * the menu loop, to avoid bugs like #2822778).
+ */
+ int _saveSlotToLoad;
+
public:
@@ -186,6 +193,15 @@ public:
virtual Common::Error loadGameState(int slot);
/**
+ * Sets the game slot for a savegame to be loaded after global
+ * main menu execution. This is to avoid loading a savegame from
+ * inside the menu loop which causes bugs like #2822778.
+ *
+ * @param slot the slot from which a savestate should be loaded.
+ */
+ void setGameToLoadSlot(int slot);
+
+ /**
* Indicates whether a game state can be loaded.
*/
virtual bool canLoadGameStateCurrently();