]> git.tdb.fi Git - libs/gl.git/blobdiff - source/resourcemanager.h
Throw a resource_load_error if the source could not be opened
[libs/gl.git] / source / resourcemanager.h
index f554b3484c7e006006d9b292bc803aea136f9e50..e7c8c04b3224d87b3eff51686013b9536d2d90a1 100644 (file)
@@ -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() { }
 };
@@ -137,7 +138,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 &);