aboutsummaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorFilippos Karapetis2008-11-09 21:09:26 +0000
committerFilippos Karapetis2008-11-09 21:09:26 +0000
commit1353a304f3b953b516815478825161413aef2d78 (patch)
treefd2a942cf883e23b1d78ada28183ce8abf0b90d1 /gui
parent926193c9c3a81c9d9245b60c8d0f5a49d117095d (diff)
downloadscummvm-rg350-1353a304f3b953b516815478825161413aef2d78.tar.gz
scummvm-rg350-1353a304f3b953b516815478825161413aef2d78.tar.bz2
scummvm-rg350-1353a304f3b953b516815478825161413aef2d78.zip
Do not allow the user to alter the description of write protected save slots in the GMM save dialog
svn-id: r34978
Diffstat (limited to 'gui')
-rw-r--r--gui/launcher.cpp13
1 files changed, 11 insertions, 2 deletions
diff --git a/gui/launcher.cpp b/gui/launcher.cpp
index 68a8fca0de..5440decdc8 100644
--- a/gui/launcher.cpp
+++ b/gui/launcher.cpp
@@ -573,8 +573,17 @@ void SaveLoadChooser::handleCommand(CommandSender *sender, uint32 cmd, uint32 da
case GUI::kListSelectionChangedCmd:
updateSelection(true);
- if (_list->isEditable())
- _list->startEditMode();
+ if (_list->isEditable()) {
+ if (!_metaInfoSupport) {
+ _list->startEditMode();
+ } else {
+ SaveStateDescriptor desc = (*_plugin)->querySaveMetaInfos(_target.c_str(), atoi(_saveList[selItem].save_slot().c_str()));
+ // Don't allow the user to change the description of write protected games
+ if (!desc.getBool("is_write_protected"))
+ _list->startEditMode();
+ }
+ }
+
break;
case kDelCmd:
if (selItem >= 0 && _delSupport) {