NoGUI: Set default settings if missing
This commit is contained in:
1 parent
c54842830f
commit
1e8752759d
3 files changed
+14
-5
No files matched your search
@@ -109,6 +109,10 @@ float NoGUIHostInterface::GetFloatSettingValue(const char* section, const char*
|
||||
void NoGUIHostInterface::LoadSettings()
|
||||
{
|
||||
m_settings_interface = std::make_unique<INISettingsInterface>(GetSettingsFileName());
|
||||
|
||||
if (!CommonHostInterface::CheckSettings(*m_settings_interface.get()))
|
||||
AddOSDMessage("Settings version mismatch, settings have been reset to defaults.", 30.0f);
|
||||
|
||||
CommonHostInterface::LoadSettings(*m_settings_interface.get());
|
||||
CommonHostInterface::FixIncompatibleSettings(false);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user