+#ifdef _WIN32
+ return dataDir;
+#else
+ std::string userDataPath;
+#if (defined(__APPLE__) && defined(__MACH__))
+ const char* homePath = getHomeDirectory();
+ if (homePath == NULL) {
+ userDataPath = ".";
+ } else {
+ userDataPath = std::string(homePath) + "/Library/Application Support/Lugaru";
+ }
+#else
+ userDataPath = getGenericDirectory("XDG_DATA_HOME", ".local/share");
+#endif