Modified mass detector to not re-add already configured games (that is, if there is an existing entry with identical path, gameid, platform, language, then do not add a new one)
svn-id: r32664
This commit is contained in:
parent
fefad79249
commit
42427f9a4e
3 changed files with 73 additions and 12 deletions
|
@ -572,8 +572,16 @@ void LauncherDialog::updateListing() {
|
|||
// Retrieve a list of all games defined in the config file
|
||||
_domains.clear();
|
||||
const ConfigManager::DomainMap &domains = ConfMan.getGameDomains();
|
||||
ConfigManager::DomainMap::const_iterator iter = domains.begin();
|
||||
ConfigManager::DomainMap::const_iterator iter;
|
||||
for (iter = domains.begin(); iter != domains.end(); ++iter) {
|
||||
#ifdef __DS__
|
||||
// DS port uses an extra section called 'ds'. This prevents the section from being
|
||||
// detected as a game.
|
||||
if (iter->_key == "ds") {
|
||||
continue;
|
||||
}
|
||||
#endif
|
||||
|
||||
String gameid(iter->_value.get("gameid"));
|
||||
String description(iter->_value.get("description"));
|
||||
|
||||
|
@ -585,14 +593,6 @@ void LauncherDialog::updateListing() {
|
|||
description = g.description();
|
||||
}
|
||||
|
||||
#ifdef __DS__
|
||||
// DS port uses an extra section called 'ds'. This prevents the section from being
|
||||
// detected as a game.
|
||||
if (gameid == "ds") {
|
||||
continue;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (description.empty())
|
||||
description = "Unknown (target " + iter->_key + ", gameid " + gameid + ")";
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue