[Scummvm-git-logs] scummvm branch-2-6 -> 0ee20d377dc2f3bfa8ee00d35df8afe465a518d4
sev-
noreply at scummvm.org
Wed Jun 8 21:09:15 UTC 2022
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
0ee20d377d GUI: Use heuristic for displaying demo names in grid launcher
Commit: 0ee20d377dc2f3bfa8ee00d35df8afe465a518d4
https://github.com/scummvm/scummvm/commit/0ee20d377dc2f3bfa8ee00d35df8afe465a518d4
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2022-06-08T23:09:06+02:00
Commit Message:
GUI: Use heuristic for displaying demo names in grid launcher
Changed paths:
gui/launcher.cpp
diff --git a/gui/launcher.cpp b/gui/launcher.cpp
index 3ebb0f3fa52..80c8348be5e 100644
--- a/gui/launcher.cpp
+++ b/gui/launcher.cpp
@@ -1505,9 +1505,14 @@ void LauncherGrid::updateListing() {
// Strip platform language from the title.
Common::String key = buildQualifiedGameName(engineid, gameid);
- if (_launcherChooser->getGameList()->contains(key))
+ if (_launcherChooser->getGameList()->contains(key)) {
title = _launcherChooser->getGameList()->getVal(key);
+ // This is not reliable
+ if (gameid.contains("-demo"))
+ title += " (Demo)";
+ }
+
if (description.empty())
description = Common::String::format("Unknown (target %s, gameid %s)", iter->_key.c_str(), gameid.c_str());
More information about the Scummvm-git-logs
mailing list