* Interface for textures, sounds, and other types of resources.
*/
+#include <cstdio>
#include <string>
#include <vector>
* @param directory Path to a directory.
*/
- static void addSearchPaths(const std::string& path);
- static void addSearchPaths(const std::vector<std::string>& path);
+ static void addSearchPaths(const std::string& paths);
+ static void addSearchPaths(const std::vector<std::string>& pathList);
/**
* Get the path to a resource of a given name.
* @return The first path found which resolves to a file.
*/
- static std::string getPath(const std::string& name);
+ static std::string getPath(const std::string& path,
+ const std::string& prefix = "",
+ const std::string& extension = "");
+
+ static bool getPath(std::string& path,
+ const std::string& prefix = "",
+ const std::string& extension = "");
+
+ static FILE* openFile(std::string& path,
+ std::string prefix = "",
+ const std::string& extension = "",
+ const std::string& mode = "rb");
private: