mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-26 23:55:40 +00:00
INISettingsInterface: Return bool on saving settings
This commit is contained in:
parent
b5311e5896
commit
f8fea1b215
|
@ -16,13 +16,17 @@ INISettingsInterface::~INISettingsInterface()
|
|||
Save();
|
||||
}
|
||||
|
||||
void INISettingsInterface::Save()
|
||||
bool INISettingsInterface::Save()
|
||||
{
|
||||
SI_Error err = m_ini.SaveFile(m_filename.c_str(), false);
|
||||
if (err != SI_OK)
|
||||
{
|
||||
Log_WarningPrintf("Failed to save settings to '%s'.", m_filename.c_str());
|
||||
else
|
||||
m_dirty = false;
|
||||
return false;
|
||||
}
|
||||
|
||||
m_dirty = false;
|
||||
return true;
|
||||
}
|
||||
|
||||
void INISettingsInterface::Clear()
|
||||
|
|
|
@ -9,7 +9,7 @@ public:
|
|||
INISettingsInterface(std::string filename);
|
||||
~INISettingsInterface();
|
||||
|
||||
void Save();
|
||||
bool Save();
|
||||
|
||||
void Clear() override;
|
||||
|
||||
|
|
Loading…
Reference in a new issue