Fix #7807. Don't need to read a .ini to check that it exists..

This commit is contained in:
Henrik Rydgard committed 2015-09-07 23:20:31 +02:00
1 parent 487f184cd9
commit 2eb45f5016
1 file changed
+1 -4
+1 -4
View File
@@ -1124,10 +1124,7 @@ void Config::RestoreDefaults() {
bool Config::hasGameConfig(const std::string &pGameId)
{
std::string fullIniFilePath = getGameConfigFile(pGameId);
IniFile existsCheck;
bool exists = existsCheck.Load(fullIniFilePath);
return exists;
return File::Exists(fullIniFilePath);
}
void Config::changeGameSpecific(const std::string &pGameId)