aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2009-08-08 20:16:58 +0000
committerEugene Sandulenko2009-08-08 20:16:58 +0000
commitf45808aeb07932e40ddb18863907744768f76341 (patch)
tree2ac74bd7ab3e09055a6cb0a7038e1e15e93016e3
parentf805e1b413e3da5abf317225b936f95ed576c5fc (diff)
downloadscummvm-rg350-f45808aeb07932e40ddb18863907744768f76341.tar.gz
scummvm-rg350-f45808aeb07932e40ddb18863907744768f76341.tar.bz2
scummvm-rg350-f45808aeb07932e40ddb18863907744768f76341.zip
Patch #2832247: "GMM: Enable loading & deleting of unnamed savegames"
svn-id: r43143
-rw-r--r--gui/saveload.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/gui/saveload.cpp b/gui/saveload.cpp
index 09b4401cca..f859c706fb 100644
--- a/gui/saveload.cpp
+++ b/gui/saveload.cpp
@@ -345,7 +345,14 @@ void SaveLoadChooser::updateSaveList() {
}
}
- saveNames.push_back(x->description());
+ // Show "Untitled savestate" for empty/whitespace savegame descriptions
+ Common::String description = x->description();
+ Common::String trimmedDescription = description;
+ trimmedDescription.trim();
+ if (trimmedDescription.empty())
+ description = "Untitled savestate";
+
+ saveNames.push_back(description);
curSlot++;
}