diff options
| author | JMC47 <JMC4789@gmail.com> | 2020-09-29 18:38:11 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-29 18:38:11 -0400 |
| commit | ebdcddfcd033b1069dc1010f233c19c419680674 (patch) | |
| tree | be8ed6e0e6496c1862401f9c1f55db06cf03c95a /Source/Core | |
| parent | 365524361276c3f59d7629f8a8428b027b6ec7ac (diff) | |
| parent | 623340bbbb68f69229a30f5a4331d1380bcad527 (diff) | |
Merge pull request #9120 from JosJuice/controller-defaults
Fix controller defaults being empty on fresh run
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/InputCommon/InputConfig.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Core/InputCommon/InputConfig.cpp b/Source/Core/InputCommon/InputConfig.cpp index 24330575e1..0a046211b0 100644 --- a/Source/Core/InputCommon/InputConfig.cpp +++ b/Source/Core/InputCommon/InputConfig.cpp @@ -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) |
