]> git.jsancho.org Git - lugaru.git/blobdiff - Source/Utils/Folders.h
Rename DATADIR to DATA_DIR to avoid conflict
[lugaru.git] / Source / Utils / Folders.h
index 1dd46fbf2c1440a093ea1bf034fd93162646c1e6..d511ac221c5d7d3261b33940a41f0ae7c1154809 100644 (file)
@@ -23,8 +23,8 @@ along with Lugaru.  If not, see <http://www.gnu.org/licenses/>.
 
 #include <string>
 
-#ifndef DATADIR
-#define DATADIR "Data"
+#ifndef DATA_DIR
+#define DATA_DIR "Data"
 #endif
 
 class Folders
@@ -45,7 +45,9 @@ public:
     static std::string getConfigFilePath();
 
 private:
+    static const char* getHomeDirectory();
     static std::string getGenericDirectory(const char* ENVVAR, const std::string fallback);
+    static bool makeDirectory(std::string path);
 };
 
 #endif /* _FOLDERS_H_ */