From 3e9247ad089f8fe0349ea15adaec4d7751a9d6e2 Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Sun, 4 Oct 2020 15:25:00 -0400 Subject: save ini every time a setting is set --- settings.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'settings.hpp') diff --git a/settings.hpp b/settings.hpp index 7c914f4..bc020a1 100644 --- a/settings.hpp +++ b/settings.hpp @@ -18,6 +18,8 @@ public: m_ini.SetValue(section.c_str(), key.c_str(), value.c_str()); else m_ini.SetValue(section.c_str(), key.c_str(), std::to_string(value).c_str()); + + m_ini.SaveFile(m_filename.c_str()); } bool IsValid() const; -- cgit v1.2.3