[Scummvm-cvs-logs] SF.net SVN: scummvm:[33981] scummvm/branches/gsoc2008-rtl/gui/launcher.cpp
cpage88 at users.sourceforge.net
cpage88 at users.sourceforge.net
Mon Aug 18 00:50:05 CEST 2008
Revision: 33981
http://scummvm.svn.sourceforge.net/scummvm/?rev=33981&view=rev
Author: cpage88
Date: 2008-08-17 22:50:05 +0000 (Sun, 17 Aug 2008)
Log Message:
-----------
Added a confirm dialog for deleting savegames
Modified Paths:
--------------
scummvm/branches/gsoc2008-rtl/gui/launcher.cpp
Modified: scummvm/branches/gsoc2008-rtl/gui/launcher.cpp
===================================================================
--- scummvm/branches/gsoc2008-rtl/gui/launcher.cpp 2008-08-17 22:49:34 UTC (rev 33980)
+++ scummvm/branches/gsoc2008-rtl/gui/launcher.cpp 2008-08-17 22:50:05 UTC (rev 33981)
@@ -967,17 +967,21 @@
// Delete the savegame
if (_loadDialog->delSave()) {
String filename = saveList[idx].filename();
- printf("Deleting file: %s\n", filename.c_str());
- saveFileMan->removeSavefile(filename.c_str());
- if ((saveList.size() - 1) == 0)
- ConfMan.setInt("save_slot", -1);
+ //printf("Deleting file: %s\n", filename.c_str());
+ MessageDialog alert("Do you really want to delete this savegame?",
+ "Yes", "No");
+ if (alert.runModal() == GUI::kMessageOK) {
+ saveFileMan->removeSavefile(filename.c_str());
+ if ((saveList.size() - 1) == 0)
+ ConfMan.setInt("save_slot", -1);
+ }
}
// Load the savegame
else {
int slot = atoi(saveList[idx].save_slot().c_str());
- const char *file = saveList[idx].filename().c_str();
- printf("Loading slot: %d\n", slot);
- printf("Loading file: %s\n", file);
+ //const char *file = saveList[idx].filename().c_str();
+ //printf("Loading slot: %d\n", slot);
+ //printf("Loading file: %s\n", file);
ConfMan.setActiveDomain(_domains[item]);
ConfMan.setInt("save_slot", slot);
close();
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