Skip to content
Permalink
Browse files
Merge pull request #9120 from JosJuice/controller-defaults
Fix controller defaults being empty on fresh run
  • Loading branch information
JMC47 committed Sep 29, 2020
2 parents 3655243 + 623340b commit ebdcddf
Showing 1 changed file with 2 additions and 1 deletion.
@@ -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)

0 comments on commit ebdcddf

Please sign in to comment.