Skip to content

Commit

Permalink
v0.1.4: Nothing updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Tianscar committed Mar 25, 2023
1 parent ec9c095 commit 427e0f4
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,17 +110,17 @@ public void uncaughtException(Thread thread, Throwable throwable) {

String basePath = "";
if (SharedLibraryLoader.isWindows) {
if (System.getProperties().getProperty("os.name").equals("Windows XP")) {
basePath = "Application Data/AnsdoShip/Carbonized Pixel Dungeon/";
if (System.getProperty("os.name").equals("Windows XP")) {
basePath = "Application Data/Tianscar/Carbonized Pixel Dungeon/";
} else {
basePath = "AppData/Roaming/AnsdoShip/Carbonized Pixel Dungeon/";
basePath = "AppData/Roaming/Tianscar/Carbonized Pixel Dungeon/";
}
} else if (SharedLibraryLoader.isMac) {
basePath = "Library/Application Support/Carbonized Pixel Dungeon/";
} else if (SharedLibraryLoader.isLinux) {
String XDGHome = System.getenv().get("XDG_DATA_HOME");
if (XDGHome == null) XDGHome = ".local/share/";
basePath = XDGHome + "ansdoship/carbonized-pixel-dungeon/";
basePath = XDGHome + "tianscar/carbonized-pixel-dungeon/";
}

//copy over prefs from old file location from legacy desktop codebase
Expand Down

0 comments on commit 427e0f4

Please sign in to comment.