X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fresourcemanager.h;h=399d479abd2111dab7de39b557846d03aa797b2c;hb=574abfb;hp=f554b3484c7e006006d9b292bc803aea136f9e50;hpb=0071618b8eb3553948a2601b6f9e28bd7d2cd817;p=libs%2Fgl.git diff --git a/source/resourcemanager.h b/source/resourcemanager.h index f554b348..399d479a 100644 --- a/source/resourcemanager.h +++ b/source/resourcemanager.h @@ -16,6 +16,7 @@ class ResourceWatcher; class resource_load_error: public std::runtime_error { public: + resource_load_error(const std::string &, const std::string &); resource_load_error(const std::string &, const std::exception &); virtual ~resource_load_error() throw() { } }; @@ -55,6 +56,7 @@ private: Resource *resource; ResourceLocation location; + bool load_priority; IO::Seekable *io; Resource::AsyncLoader *loader; State state; @@ -137,7 +139,7 @@ public: void set_resource_location(Resource &, const ResourceLocation &); const ResourceLocation *get_resource_location(const Resource &) const; void load_resource(Resource &); - bool is_resource_loaded(const Resource &); + bool is_resource_loaded(const Resource &) const; void resource_used(const Resource &); void remove_resource(Resource &);