aboutsummaryrefslogtreecommitdiff
path: root/engines/dialogs.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2008-11-07 19:43:01 +0000
committerFilippos Karapetis2008-11-07 19:43:01 +0000
commit57e57c49cee547a9b48ebdedeea6b8bc2d9892fa (patch)
treeccc9e579585253fc68bd9b1ba9317bfded7d8615 /engines/dialogs.cpp
parente6337d11aa74322dc6e362ede199a9f4c4ebc5cf (diff)
downloadscummvm-rg350-57e57c49cee547a9b48ebdedeea6b8bc2d9892fa.tar.gz
scummvm-rg350-57e57c49cee547a9b48ebdedeea6b8bc2d9892fa.tar.bz2
scummvm-rg350-57e57c49cee547a9b48ebdedeea6b8bc2d9892fa.zip
Saving a game from GMM is now working for the SAGA engine, though the description is not set correctly yet
svn-id: r34932
Diffstat (limited to 'engines/dialogs.cpp')
-rw-r--r--engines/dialogs.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/dialogs.cpp b/engines/dialogs.cpp
index 40cec8e10b..c1d9499583 100644
--- a/engines/dialogs.cpp
+++ b/engines/dialogs.cpp
@@ -118,6 +118,7 @@ MainMenuDialog::MainMenuDialog(Engine *engine)
_aboutDialog = new GUI::AboutDialog();
_optionsDialog = new ConfigDialog();
_loadDialog = new GUI::SaveLoadChooser("Load game:", "Load");
+ _loadDialog->setSaveMode(false);
_saveDialog = new GUI::SaveLoadChooser("Save game:", "Save");
_saveDialog->setSaveMode(true);
}
@@ -155,7 +156,6 @@ void MainMenuDialog::handleCommand(CommandSender *sender, uint32 cmd, uint32 dat
}
break;
case kSaveCmd:
- /*
{
Common::String gameId = ConfMan.get("gameid");
@@ -165,7 +165,9 @@ void MainMenuDialog::handleCommand(CommandSender *sender, uint32 cmd, uint32 dat
int slot = _saveDialog->runModal(plugin, ConfMan.getActiveDomainName());
if (slot >= 0) {
- Common::String result(_saveDialog->getResultString());
+ // FIXME: at this point, the save list's selItem is -1!
+ //Common::String result(_saveDialog->getResultString());
+ Common::String result;
char *desc;
if (result.empty()) {
// If the user was lazy and entered no save name, come up with a default name.
@@ -180,7 +182,6 @@ void MainMenuDialog::handleCommand(CommandSender *sender, uint32 cmd, uint32 dat
}
}
- */
break;
case kOptionsCmd:
_optionsDialog->runModal();