diff --git a/core/settings/settings.h b/core/settings/settings.h index 1658c7a..f24fc6a 100644 --- a/core/settings/settings.h +++ b/core/settings/settings.h @@ -3,10 +3,14 @@ #include +#include "core/object.h" + #include "core/variant.h" #include "core/string.h" -class Settings { +class Settings : public Object { + RCPP_OBJECT(Settings, Object); + public: Variant get_value(const String &key, const Variant &def = Variant()); String get_value_string(const String &key, const String &def = ""); @@ -15,7 +19,7 @@ public: double get_value_double(const String &key, const double def = 0); bool get_value_bool(const String &key, const bool def = false); - void set_value(const String &key, const Variant &value); + virtual void set_value(const String &key, const Variant &value); void parse_ini_file(const String &path);