aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk/myst.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2012-06-10 04:14:17 +0200
committerJohannes Schickel2012-06-10 04:19:45 +0200
commit15046a7529e3c755de1f00b4a2666786eb2bd4f8 (patch)
tree44ebb357905b837264abc117713d49ff47619239 /engines/mohawk/myst.cpp
parent0e5ae35e345d6e7f38177e158dcc871cf7a034d3 (diff)
downloadscummvm-rg350-15046a7529e3c755de1f00b4a2666786eb2bd4f8.tar.gz
scummvm-rg350-15046a7529e3c755de1f00b4a2666786eb2bd4f8.tar.bz2
scummvm-rg350-15046a7529e3c755de1f00b4a2666786eb2bd4f8.zip
GUI: Get rid of SaveLoadChooser::setSaveMode.
We already pass the title and process button name to the constructor of SaveLoadChooser and then do not offer any way of changing it, thus changing the edit mode of the chooser is kind of pointless and was never actually used. Instead we pass the mode on SaveLoadChooser construction now.
Diffstat (limited to 'engines/mohawk/myst.cpp')
-rw-r--r--engines/mohawk/myst.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/mohawk/myst.cpp b/engines/mohawk/myst.cpp
index c22b30ad4d..0efd412bd0 100644
--- a/engines/mohawk/myst.cpp
+++ b/engines/mohawk/myst.cpp
@@ -252,8 +252,7 @@ Common::Error MohawkEngine_Myst::run() {
_gfx = new MystGraphics(this);
_console = new MystConsole(this);
_gameState = new MystGameState(this, _saveFileMan);
- _loadDialog = new GUI::SaveLoadChooser(_("Load game:"), _("Load"));
- _loadDialog->setSaveMode(false);
+ _loadDialog = new GUI::SaveLoadChooser(_("Load game:"), _("Load"), false);
_optionsDialog = new MystOptionsDialog(this);
_cursor = new MystCursorManager(this);
_rnd = new Common::RandomSource("myst");