aboutsummaryrefslogtreecommitdiff
path: root/engines/parallaction
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/parallaction
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/parallaction')
-rw-r--r--engines/parallaction/saveload.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/parallaction/saveload.cpp b/engines/parallaction/saveload.cpp
index 3ab25f203f..3bd736b915 100644
--- a/engines/parallaction/saveload.cpp
+++ b/engines/parallaction/saveload.cpp
@@ -180,8 +180,7 @@ void SaveLoad_ns::doSaveGame(uint16 slot, const char* name) {
}
int SaveLoad::selectSaveFile(Common::String &selectedName, bool saveMode, const Common::String &caption, const Common::String &button) {
- GUI::SaveLoadChooser slc(caption, button);
- slc.setSaveMode(saveMode);
+ GUI::SaveLoadChooser slc(caption, button, saveMode);
selectedName.clear();