X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FUtils%2FFolders.hpp;h=2399506cb7076efd8773fef434ad91dd1389ddbd;hb=1198f8141fe7d5b04a936935c45af3217064b0d7;hp=d812d10295db6fcc8b05785002e253d7306af48a;hpb=eae73ddd7a006ee6de9ffb01f3ec5f8e5fdc6d85;p=lugaru.git diff --git a/Source/Utils/Folders.hpp b/Source/Utils/Folders.hpp index d812d10..2399506 100644 --- a/Source/Utils/Folders.hpp +++ b/Source/Utils/Folders.hpp @@ -30,7 +30,7 @@ along with Lugaru. If not, see . struct FileNotFoundException: public std::exception { std::string errorText; - + FileNotFoundException (const std::string& filename) : errorText(filename + " could not be found") {} @@ -66,10 +66,11 @@ public: static inline std::string getUserSavePath() { return getUserDataPath() + "/users"; } + static bool makeDirectory(const std::string& path); + private: static const char* getHomeDirectory(); static std::string getGenericDirectory(const char* ENVVAR, const std::string& fallback); - static bool makeDirectory(const std::string& path); }; #endif /* _FOLDERS_H_ */