Advanced detector: Let the user define a language/platform override for games which do not specify a fixed one (like multilingual versions)

svn-id: r31446
This commit is contained in:
Max Horn 2008-04-07 20:56:34 +00:00
parent 04ff7cb1c1
commit 1aac71ae34

View file

@ -376,8 +376,8 @@ static ADGameDescList detectGame(const FSList *fslist, const Common::ADParams &p
// Do not even bother to look at entries which do not have matching // Do not even bother to look at entries which do not have matching
// language and platform (if specified). // language and platform (if specified).
if ((language != UNK_LANG && g->language != language) || if ((language != UNK_LANG && g->language != UNK_LANG && g->language != language) ||
(platform != kPlatformUnknown && g->platform != platform)) { (platform != kPlatformUnknown && g->platform != kPlatformUnknown && g->platform != platform)) {
continue; continue;
} }