mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
Fix controller defaults being empty on fresh run
A very early call to Config::Save is now creating empty controller INI files. https://bugs.dolphin-emu.org/issues/12283
This commit is contained in:
parent
960750003e
commit
623340bbbb
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user