[Scummvm-git-logs] scummvm master -> 0e6c0e116782f11087a9e728fec67c0549a46044
sev-
noreply at scummvm.org
Wed Jun 8 21:08:45 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:
0e6c0e1167 GUI: Use heuristic for displaying demo names in grid launcher
Commit: 0e6c0e116782f11087a9e728fec67c0549a46044
https://github.com/scummvm/scummvm/commit/0e6c0e116782f11087a9e728fec67c0549a46044
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2022-06-08T23:08:37+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