Merge pull request #9120 from JosJuice/controller-defaults

Fix controller defaults being empty on fresh run
This commit is contained in:
JMC47 2020-09-29 18:38:11 -04:00 committed by GitHub
commit ebdcddfcd0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -93,7 +93,8 @@ bool InputConfig::LoadConfig(bool isGC)
#endif
}
if (inifile.Load(File::GetUserPath(D_CONFIG_IDX) + m_ini_name + ".ini"))
if (inifile.Load(File::GetUserPath(D_CONFIG_IDX) + m_ini_name + ".ini") &&
!inifile.GetSections().empty())
{
int n = 0;
for (auto& controller : m_controllers)