mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-05 18:41:12 +00:00
Don't assert that "domain" is valid. One of the cases where this function
is called is when parsing the command-line, and we can't really expect the user to always type something sensible. svn-id: r17893
This commit is contained in:
parent
0ab3872653
commit
b56824d0cf
@ -490,8 +490,7 @@ void ConfigManager::renameGameDomain(const String &oldName, const String &newNam
|
||||
|
||||
bool ConfigManager::hasGameDomain(const String &domain) const {
|
||||
assert(!domain.isEmpty());
|
||||
assert(isValidDomainName(domain));
|
||||
return _gameDomains.contains(domain);
|
||||
return isValidDomainName(domain) && _gameDomains.contains(domain);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user