[Scummvm-cvs-logs] SF.net SVN: scummvm:[34978] scummvm/trunk/gui/launcher.cpp

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Sun Nov 9 22:09:27 CET 2008


Revision: 34978
          http://scummvm.svn.sourceforge.net/scummvm/?rev=34978&view=rev
Author:   thebluegr
Date:     2008-11-09 21:09:26 +0000 (Sun, 09 Nov 2008)

Log Message:
-----------
Do not allow the user to alter the description of write protected save slots in the GMM save dialog

Modified Paths:
--------------
    scummvm/trunk/gui/launcher.cpp

Modified: scummvm/trunk/gui/launcher.cpp
===================================================================
--- scummvm/trunk/gui/launcher.cpp	2008-11-09 20:35:06 UTC (rev 34977)
+++ scummvm/trunk/gui/launcher.cpp	2008-11-09 21:09:26 UTC (rev 34978)
@@ -573,8 +573,17 @@
 	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) {


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list