diff --git a/Source/Project64-core/Settings/SettingType/SettingsType-TempBool.cpp b/Source/Project64-core/Settings/SettingType/SettingsType-TempBool.cpp index 7011821a6..89c86c420 100644 --- a/Source/Project64-core/Settings/SettingType/SettingsType-TempBool.cpp +++ b/Source/Project64-core/Settings/SettingType/SettingsType-TempBool.cpp @@ -13,6 +13,7 @@ CSettingTypeTempBool::CSettingTypeTempBool(bool initialValue, const char * Name) : m_value(initialValue), + m_changed(false), m_Name(Name ? Name : "") { } @@ -58,6 +59,7 @@ void CSettingTypeTempBool::LoadDefault(uint32_t /*Index*/, std::string & /*Value void CSettingTypeTempBool::Save(uint32_t /*Index*/, bool Value) { m_value = Value; + m_changed = true; } void CSettingTypeTempBool::Save(uint32_t /*Index*/, uint32_t /*Value*/) diff --git a/Source/Project64-core/Settings/SettingType/SettingsType-TempBool.h b/Source/Project64-core/Settings/SettingType/SettingsType-TempBool.h index 81891a00a..1fdbc554f 100644 --- a/Source/Project64-core/Settings/SettingType/SettingsType-TempBool.h +++ b/Source/Project64-core/Settings/SettingType/SettingsType-TempBool.h @@ -21,7 +21,7 @@ public: bool IndexBasedSetting(void) const { return false; } SettingType GetSettingType(void) const { return SettingType_BoolVariable; } - bool IsSettingSet(void) const { return false; } + bool IsSettingSet(void) const { return m_changed; } const char * GetName(void) const { return m_Name.c_str(); } @@ -50,5 +50,6 @@ private: CSettingTypeTempBool& operator=(const CSettingTypeTempBool&); // Disable assignment bool m_value; + bool m_changed; std::string m_Name; };