diff options
author | Thierry Crozat | 2016-08-03 22:43:44 +0100 |
---|---|---|
committer | Thierry Crozat | 2016-08-03 22:50:06 +0100 |
commit | 191a9a0c641b4d565ecc295f4b8353c15d163248 (patch) | |
tree | a968d8971ec861d60def2ea6f231cf522b87492a /engines/mohawk/dialogs.h | |
parent | 0cccd0ddd1d53b7d16e47a5b2d8ca62c87d992f4 (diff) | |
download | scummvm-rg350-191a9a0c641b4d565ecc295f4b8353c15d163248.tar.gz scummvm-rg350-191a9a0c641b4d565ecc295f4b8353c15d163248.tar.bz2 scummvm-rg350-191a9a0c641b4d565ecc295f4b8353c15d163248.zip |
MOHAWK: Load games from outside the options dialog loop
Loading games from inside the dialog loop may cause cursor
glitches. This commits applies the same fix to the
MohawkOptionsDialog as the one that already existed for
the global main menu. This finished to fix bug #7164.
Diffstat (limited to 'engines/mohawk/dialogs.h')
-rw-r--r-- | engines/mohawk/dialogs.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/mohawk/dialogs.h b/engines/mohawk/dialogs.h index 3cfb628f9d..99db641948 100644 --- a/engines/mohawk/dialogs.h +++ b/engines/mohawk/dialogs.h @@ -81,6 +81,8 @@ public: virtual void open() override; virtual void reflowLayout() override; virtual void handleCommand(GUI::CommandSender *sender, uint32 cmd, uint32 data) override; + + int getLoadSlot() const {return _loadSlot;} private: MohawkEngine *_vm; @@ -90,6 +92,8 @@ private: GUI::SaveLoadChooser *_loadDialog; GUI::SaveLoadChooser *_saveDialog; + + int _loadSlot; void save(); void load(); |