aboutsummaryrefslogtreecommitdiff
path: root/engines/illusions/menusystem.cpp
diff options
context:
space:
mode:
authorEric Fry2018-04-20 12:17:00 +1000
committerEugene Sandulenko2018-07-20 06:43:33 +0000
commit13d5c2fa2629a9409f385ae8054fada0fc030eda (patch)
tree29b3e752da61280eda3d7dfe3a82816073f73963 /engines/illusions/menusystem.cpp
parent92c979e99ab6edf85d20fe5ba693f5a7d14fb2e1 (diff)
downloadscummvm-rg350-13d5c2fa2629a9409f385ae8054fada0fc030eda.tar.gz
scummvm-rg350-13d5c2fa2629a9409f385ae8054fada0fc030eda.tar.bz2
scummvm-rg350-13d5c2fa2629a9409f385ae8054fada0fc030eda.zip
Save description with savegame
Diffstat (limited to 'engines/illusions/menusystem.cpp')
-rw-r--r--engines/illusions/menusystem.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/engines/illusions/menusystem.cpp b/engines/illusions/menusystem.cpp
index c8bf36e6f4..f32bdc6a78 100644
--- a/engines/illusions/menusystem.cpp
+++ b/engines/illusions/menusystem.cpp
@@ -504,6 +504,10 @@ void BaseMenuSystem::setSavegameSlotNum(int slotNum) {
_vm->_savegameSlotNum = slotNum;
}
+void BaseMenuSystem::setSavegameDescription(Common::String desc) {
+ _vm->_savegameDescription = desc;
+}
+
void BaseMenuSystem::updateTimeOut(bool resetTimeOut) {
if (!_isTimeOutEnabled)
@@ -636,11 +640,13 @@ void MenuActionLoadGame::execute() {
dialog = new GUI::SaveLoadChooser(_("Save game:"), _("Save"), true);
slot = dialog->runModalWithPluginAndTarget(plugin, ConfMan.getActiveDomainName());
+ desc = dialog->getResultString().c_str();
- delete dialog;
+ delete dialog;
- if (slot >= 0) {
- _menuSystem->setSavegameSlotNum(slot);
+ if (slot >= 0) {
+ _menuSystem->setSavegameSlotNum(slot);
+ _menuSystem->setSavegameDescription(desc);
_menuSystem->selectMenuChoiceIndex(_choiceIndex);
}
}