diff options
author | Johannes Schickel | 2012-06-10 04:14:17 +0200 |
---|---|---|
committer | Johannes Schickel | 2012-06-10 04:19:45 +0200 |
commit | 15046a7529e3c755de1f00b4a2666786eb2bd4f8 (patch) | |
tree | 44ebb357905b837264abc117713d49ff47619239 /engines/cge | |
parent | 0e5ae35e345d6e7f38177e158dcc871cf7a034d3 (diff) | |
download | scummvm-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/cge')
-rw-r--r-- | engines/cge/events.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/engines/cge/events.cpp b/engines/cge/events.cpp index 3c561c5659..e903584100 100644 --- a/engines/cge/events.cpp +++ b/engines/cge/events.cpp @@ -73,8 +73,7 @@ bool Keyboard::getKey(Common::Event &event) { const EnginePlugin *plugin = NULL; EngineMan.findGame(_vm->_gameDescription->gameid, &plugin); - GUI::SaveLoadChooser *dialog = new GUI::SaveLoadChooser("Save game:", "Save"); - dialog->setSaveMode(true); + GUI::SaveLoadChooser *dialog = new GUI::SaveLoadChooser("Save game:", "Save", true); int16 savegameId = dialog->runModalWithPluginAndTarget(plugin, ConfMan.getActiveDomainName()); Common::String savegameDescription = dialog->getResultString(); delete dialog; @@ -88,8 +87,7 @@ bool Keyboard::getKey(Common::Event &event) { const EnginePlugin *plugin = NULL; EngineMan.findGame(_vm->_gameDescription->gameid, &plugin); - GUI::SaveLoadChooser *dialog = new GUI::SaveLoadChooser("Restore game:", "Restore"); - dialog->setSaveMode(false); + GUI::SaveLoadChooser *dialog = new GUI::SaveLoadChooser("Restore game:", "Restore", false); int16 savegameId = dialog->runModalWithPluginAndTarget(plugin, ConfMan.getActiveDomainName()); delete dialog; |