X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=src%2FResource.h;h=912ae75377b725604159f51789799dbfbf89be9f;hb=3dcebcf56c6dd3a3707291e757af485bb55df7a6;hp=90b86d315ca06fd12c89c46d2aa073bbc9ce398e;hpb=455b288c3e4b027060481f7c10e5931599d1ae96;p=chaz%2Fopenbox diff --git a/src/Resource.h b/src/Resource.h index 90b86d31..912ae753 100644 --- a/src/Resource.h +++ b/src/Resource.h @@ -30,9 +30,9 @@ class obResource { public: obResource(const std::string &file); + obResource(); virtual ~obResource(); - // an empty string is an invalid value for the file and will cause an assert inline const std::string &file() const { return static_cast(m_file); } @@ -52,6 +52,7 @@ public: bool load(); void setValue(const std::string &rname, bool value); + void setValue(const std::string &rname, int value); void setValue(const std::string &rname, long value); void setValue(const std::string &rname, const std::string &value); void setValue(const std::string &rname, const char *value); @@ -64,6 +65,7 @@ public: std::string &value) const; private: + static bool m_initialized; std::string m_file; bool m_modified; bool m_autosave;