summarylogtreecommitdiffstats
path: root/ares-paths.patch
blob: 5b718b9231360d0a18f143298d41946fa4eb320c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/ares-PLACEHOLDER/desktop-ui/desktop-ui.cpp b/ares-PLACEHOLDER/desktop-ui/desktop-ui.cpp
@@ -23,15 +23,15 @@
   // ship with the executable.
   // On Windows, this allows settings from to be carried over
   // from previous versions (pre-portable)
-  location = {Path::userData(), "ares/", name};
+  location = {Path::sharedData(), "ares/", name};
   if(inode::exists(location)) return location;
 
   // On non-windows platforms, after exhausting other options,
   // default to userData, on Windows, default to program dir
   // this ensures Portable mode is the default on Windows platforms.
   #if !defined(PLATFORM_WINDOWS)
-    directory::create({Path::userData(), "ares/"});
-    return {Path::userData(), "ares/", name};
+    directory::create({Path::userSettings(), "ares/"});
+    return {Path::userSettings(), "ares/", name};
   #else 
     return {Path::program(), name};
   #endif