From 2eb45f5016f777d786a0634169cf9a7f443d018b Mon Sep 17 00:00:00 2001 From: Henrik Rydgard Date: Mon, 7 Sep 2015 23:20:31 +0200 Subject: [PATCH] Fix #7807. Don't need to read a .ini to check that it exists.. --- Core/Config.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Core/Config.cpp b/Core/Config.cpp index 5ec26364f4..aeb319a081 100644 --- a/Core/Config.cpp +++ b/Core/Config.cpp @@ -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)