From e53e0e588569e71507d748f22a10970b4f417607 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Thu, 9 Mar 2006 03:09:21 +0000 Subject: - Removed the code from the launcher that adds language/platform to the game descriptions. Doing this now is the responsibility of the engines. - Adapted the SCUMM engine to add lang/platform to the desc string if necessary. Other engines still have to be adapted (but many do not seem to need this at all, since they either are lang/platform agnostic, or already include this information in their MD5 tables). svn-id: r21154 --- gui/launcher.cpp | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) (limited to 'gui') diff --git a/gui/launcher.cpp b/gui/launcher.cpp index ceb202dee0..74b89b7485 100644 --- a/gui/launcher.cpp +++ b/gui/launcher.cpp @@ -654,31 +654,14 @@ void LauncherDialog::addGame() { ConfMan.set("gameid", result.gameid, domain); ConfMan.set("path", dir.path(), domain); - const bool customLanguage = (result.language != Common::UNK_LANG); - const bool customPlatform = (result.platform != Common::kPlatformUnknown); - // Set language if specified - if (customLanguage) + if (result.language != Common::UNK_LANG) ConfMan.set("language", Common::getLanguageCode(result.language), domain); // Set platform if specified - if (customPlatform) + if (result.platform != Common::kPlatformUnknown) ConfMan.set("platform", Common::getPlatformCode(result.platform), domain); - // Adapt the description string if custom platform/language is set - if (customLanguage || customPlatform) { - result.description += " ("; - if (customLanguage) - result.description += Common::getLanguageDescription(result.language); - if (customLanguage && customPlatform) - result.description += "/"; - if (customPlatform) - result.description += Common::getPlatformDescription(result.platform); - result.description += ")"; - - ConfMan.set("description", result.description, domain); - } - // Display edit dialog for the new entry EditGameDialog editDialog(domain, result.description); if (editDialog.runModal() > 0) { -- cgit v1.2.3