[Scummvm-cvs-logs] CVS: scummvm/gui launcher.cpp,1.8,1.9
James Brown
ender at users.sourceforge.net
Mon Oct 28 01:04:01 CET 2002
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/simon simon.cpp,1.32,1.33
- Next message: [Scummvm-cvs-logs] CVS: scummvm/common config-file.cpp,1.6,1.7 config-file.h,1.4,1.5 gameDetector.cpp,1.23,1.24 gameDetector.h,1.8,1.9
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/scummvm/scummvm/gui
In directory usw-pr-cvs1:/tmp/cvs-serv23319/gui
Modified Files:
launcher.cpp
Log Message:
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.
Index: launcher.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/gui/launcher.cpp,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- launcher.cpp 17 Oct 2002 22:43:13 -0000 1.8
+++ launcher.cpp 28 Oct 2002 09:03:00 -0000 1.9
@@ -70,13 +70,25 @@
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);
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/simon simon.cpp,1.32,1.33
- Next message: [Scummvm-cvs-logs] CVS: scummvm/common config-file.cpp,1.6,1.7 config-file.h,1.4,1.5 gameDetector.cpp,1.23,1.24 gameDetector.h,1.8,1.9
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Scummvm-git-logs
mailing list