From 555a568e596b3d4dfe992689e8bc805d5feebfb2 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sun, 16 Apr 2006 13:58:11 +0000 Subject: Fixed some breakage in the 'Add Game' code I recently introduced; added a FIXME comment regarding the 'description' config file key svn-id: r21943 --- gui/launcher.cpp | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'gui') diff --git a/gui/launcher.cpp b/gui/launcher.cpp index 0c3cfad17d..de47a1946a 100644 --- a/gui/launcher.cpp +++ b/gui/launcher.cpp @@ -616,8 +616,22 @@ void LauncherDialog::addGame() { suffix++; domain += suffix; } - ConfMan.set("description", result.description, domain); } + + // Add the name domain + ConfMan.addGameDomain(domain); + + // TODO: Setting the description field here has the drawback + // that the user does never notice when we upgrade our descriptions. + // It might be nice ot leave this field empty, and only set it to + // a value when the user edits the description string. + // However, at this point, that's impractical. Once we have a method + // to query all backends for the proper & full description of a given + // game target, we can change this (currently, you can only query + // for the generic gameid description; it's not possible to obtain + // a description which contains extended information like language, etc.). + ConfMan.set("description", result.description, domain); + ConfMan.set("gameid", result.gameid, domain); ConfMan.set("path", dir.path(), domain); -- cgit v1.2.3