aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
authorMax Horn2011-02-07 22:58:22 +0000
committerMax Horn2011-02-07 22:58:22 +0000
commit41121be4d6fecbc727897471e0ceed1fd4c76bd7 (patch)
tree08ad9d64eb68bc039cc70e29092592cd8f446526 /engines/sci
parent85aabef6fe370766fa52ba92a7cf63c558bac772 (diff)
downloadscummvm-rg350-41121be4d6fecbc727897471e0ceed1fd4c76bd7.tar.gz
scummvm-rg350-41121be4d6fecbc727897471e0ceed1fd4c76bd7.tar.bz2
scummvm-rg350-41121be4d6fecbc727897471e0ceed1fd4c76bd7.zip
GUI: Rename SaveLoadChooser::runModal to runModalWithPluginAndTarget
This avoids hiding an overloaded virtual method, which in turn can cause weird bugs (see also the next commit). svn-id: r55815
Diffstat (limited to 'engines/sci')
-rw-r--r--engines/sci/engine/kfile.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sci/engine/kfile.cpp b/engines/sci/engine/kfile.cpp
index 5f1445247f..9fd61fa10d 100644
--- a/engines/sci/engine/kfile.cpp
+++ b/engines/sci/engine/kfile.cpp
@@ -575,7 +575,7 @@ reg_t kSaveGame(EngineState *s, int argc, reg_t *argv) {
EngineMan.findGame(g_sci->getGameIdStr(), &plugin);
GUI::SaveLoadChooser *dialog = new GUI::SaveLoadChooser(_("Save game:"), _("Save"));
dialog->setSaveMode(true);
- savegameId = dialog->runModal(plugin, ConfMan.getActiveDomainName());
+ savegameId = dialog->runModalWithPluginAndTarget(plugin, ConfMan.getActiveDomainName());
game_description = dialog->getResultString();
if (game_description.empty()) {
// create our own description for the saved game, the user didnt enter it
@@ -675,7 +675,7 @@ reg_t kRestoreGame(EngineState *s, int argc, reg_t *argv) {
EngineMan.findGame(g_sci->getGameIdStr(), &plugin);
GUI::SaveLoadChooser *dialog = new GUI::SaveLoadChooser(_("Restore game:"), _("Restore"));
dialog->setSaveMode(false);
- savegameId = dialog->runModal(plugin, ConfMan.getActiveDomainName());
+ savegameId = dialog->runModalWithPluginAndTarget(plugin, ConfMan.getActiveDomainName());
delete dialog;
if (savegameId < 0) {
g_sci->_soundCmd->pauseAll(false); // unpause music