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.
This commit is contained in:
Johannes Schickel 2012-06-10 04:14:17 +02:00
parent 0e5ae35e34
commit 15046a7529
15 changed files with 25 additions and 50 deletions

View file

@ -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();