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/dreamweb | |
| 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/dreamweb')
| -rw-r--r-- | engines/dreamweb/saveload.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/engines/dreamweb/saveload.cpp b/engines/dreamweb/saveload.cpp index c8fb537fec..e659c03e13 100644 --- a/engines/dreamweb/saveload.cpp +++ b/engines/dreamweb/saveload.cpp @@ -161,8 +161,7 @@ void DreamWebEngine::doLoad(int savegameId) { const EnginePlugin *plugin = NULL; Common::String gameId = ConfMan.get("gameid"); EngineMan.findGame(gameId, &plugin); - GUI::SaveLoadChooser *dialog = new GUI::SaveLoadChooser(_("Restore game:"), _("Restore")); - dialog->setSaveMode(false); + GUI::SaveLoadChooser *dialog = new GUI::SaveLoadChooser(_("Restore game:"), _("Restore"), false); savegameId = dialog->runModalWithPluginAndTarget(plugin, ConfMan.getActiveDomainName()); delete dialog; } @@ -248,8 +247,7 @@ void DreamWebEngine::saveGame() { const EnginePlugin *plugin = NULL; Common::String gameId = ConfMan.get("gameid"); EngineMan.findGame(gameId, &plugin); - GUI::SaveLoadChooser *dialog = new GUI::SaveLoadChooser(_("Save game:"), _("Save")); - dialog->setSaveMode(true); + GUI::SaveLoadChooser *dialog = new GUI::SaveLoadChooser(_("Save game:"), _("Save"), true); int savegameId = dialog->runModalWithPluginAndTarget(plugin, ConfMan.getActiveDomainName()); Common::String game_description = dialog->getResultString(); if (game_description.empty()) |
