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
|
||||
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 New Issue