X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2FResource.h;h=7d7924943bfb4f9fe15928ef752d5bede98a7df8;hb=62e178416108c41f8d3e7c1a5fc113c7e7724543;hp=985e29d8a1495837c9a780ce63dbd08fe2962f87;hpb=8d3c97389f23271c7b44a726111c97d34bc2ced2;p=chaz%2Fopenbox diff --git a/src/Resource.h b/src/Resource.h index 985e29d8..7d792494 100644 --- a/src/Resource.h +++ b/src/Resource.h @@ -27,11 +27,11 @@ #include #include -class obResource { +class Resource { public: - obResource(const std::string &file); - obResource(); - virtual ~obResource(); + Resource(const std::string &file); + Resource(); + virtual ~Resource(); inline const std::string &file() const { return static_cast(m_file); @@ -50,6 +50,7 @@ public: void save(); bool load(); + void create(); void setValue(const std::string &rname, bool value); void setValue(const std::string &rname, int value); @@ -65,6 +66,7 @@ public: std::string &value) const; private: + static bool m_initialized; std::string m_file; bool m_modified; bool m_autosave;