X-Git-Url: https://git.jsancho.org/?p=lugaru.git;a=blobdiff_plain;f=Source%2FUtils%2FFolders.hpp;h=d812d10295db6fcc8b05785002e253d7306af48a;hp=9ecf9e0219eb47395c0d2ea449ed4b3abcbcc48a;hb=eae73ddd7a006ee6de9ffb01f3ec5f8e5fdc6d85;hpb=a3f060d7e5508cd032c4f1c320033a74e5d84009 diff --git a/Source/Utils/Folders.hpp b/Source/Utils/Folders.hpp index 9ecf9e0..d812d10 100644 --- a/Source/Utils/Folders.hpp +++ b/Source/Utils/Folders.hpp @@ -56,6 +56,8 @@ public: static FILE* openMandatoryFile(const std::string& filename, const char* mode); + static bool file_exists(const std::string& filepath); + /* Returns full path for a game resource */ static inline std::string getResourcePath(const std::string& filepath) { return dataDir + '/' + filepath; }