aboutsummaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorJames Brown2002-10-28 09:03:02 +0000
committerJames Brown2002-10-28 09:03:02 +0000
commit959a9acf1456f2b39a3b8a20779c71a2637754d2 (patch)
treed9bf3ded96371a8e958d17ce772a8b5b831aa067 /gui
parent2e027179e030600a58ee84cd52780b201f817232 (diff)
downloadscummvm-rg350-959a9acf1456f2b39a3b8a20779c71a2637754d2.tar.gz
scummvm-rg350-959a9acf1456f2b39a3b8a20779c71a2637754d2.tar.bz2
scummvm-rg350-959a9acf1456f2b39a3b8a20779c71a2637754d2.zip
Add support for aliased scummvm config entries.
Eg: [germandott] path=/games/german/dott gameid=tentacle description=the german version of DOTT I havn't finished the Launcher changes to show aliased entries yet, as I need to parse the whole domainmap to do so. svn-id: r5341
Diffstat (limited to 'gui')
-rw-r--r--gui/launcher.cpp16
1 files changed, 14 insertions, 2 deletions
diff --git a/gui/launcher.cpp b/gui/launcher.cpp
index f0c3ad3b7d..80494f79e6 100644
--- a/gui/launcher.cpp
+++ b/gui/launcher.cpp
@@ -70,13 +70,25 @@ LauncherDialog::LauncherDialog(NewGui *gui, GameDetector &detector)
const VersionSettings *v = version_settings;
ScummVM::StringList l;
-
// TODO - maybe only display those games for which settings are known
// (i.e. a path to the game data was set and is accesible) ?
+
+
+ char domains[255][100];
+ int count = g_config->get_domains(domains);
+ //printf("First domain is %s, out of %d\n", domains[0], count);
while (v->filename && v->gamename) {
if (g_config->has_domain(v->filename)) {
- String name = v->gamename;
+ String name;
+ char *txtname;
int pos = 0, size = l.size();
+
+ if ((txtname = (char*)g_config->get("description", v->filename))) {
+ name = txtname;
+ } else {
+ name = v->gamename;
+ }
+
while (pos < size && (name > l[pos]))
pos++;
l.insert_at(pos, name);