From 959a9acf1456f2b39a3b8a20779c71a2637754d2 Mon Sep 17 00:00:00 2001 From: James Brown Date: Mon, 28 Oct 2002 09:03:02 +0000 Subject: 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 --- gui/launcher.cpp | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'gui') 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); -- cgit v1.2.3