X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2Fmoof%2Fresource.hh;h=29ae114f9d4daa4cc1b5e0cd14d900d7611963fa;hp=7616d69c280ecde861e9857c1a1138bd3127a4d8;hb=51069fee9139ab8d14ecc80dffbe5deecb73d9e0;hpb=e0fb747f2e647115d0b8953615c254d25c045345 diff --git a/src/moof/resource.hh b/src/moof/resource.hh index 7616d69..29ae114 100644 --- a/src/moof/resource.hh +++ b/src/moof/resource.hh @@ -17,6 +17,8 @@ * Interface for textures, sounds, and other types of resources. */ +#include "config.h" + #include #include #include @@ -28,10 +30,6 @@ #include -#if HAVE_CONFIG_H -#include "../config.h" -#endif - namespace moof { @@ -58,12 +56,6 @@ public: */ static void add_search_paths(const std::string& paths); - /** - * Add directories to search when looking for resource files. - * \param pathList The list of directory paths. - */ - static void add_search_paths(const std::vector& pathList); - /** * Get the path to a resource of a given name. @@ -73,6 +65,8 @@ public: */ static bool find(const std::string& file); + static std::string find_file(const std::string& name); + /** * Get the path to a resource of a given name and open it if a resource * was found.