]> git.jsancho.org Git - lugaru.git/blobdiff - Source/Utils/Folders.hpp
Creating map saving folder if needed
[lugaru.git] / Source / Utils / Folders.hpp
index d812d10295db6fcc8b05785002e253d7306af48a..2399506cb7076efd8773fef434ad91dd1389ddbd 100644 (file)
@@ -30,7 +30,7 @@ along with Lugaru.  If not, see <http://www.gnu.org/licenses/>.
 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_ */