v1.2.0: made conversion of pre-1.2.0 linux save DIR more precise

This commit is contained in:
Evan Debenham 2022-03-21 23:57:04 -04:00
parent 69ce3f0c09
commit 0b77cff082

View File

@ -142,8 +142,8 @@ public class DesktopLauncher {
basePath = XDGHome + ".shatteredpixel/shattered-pixel-dungeon/";
//copy over files from old linux save DIR, pre-1.2.0
FileHandle oldBase = new Lwjgl3FileHandle(".shatteredpixel/", Files.FileType.External);
FileHandle newBase = new Lwjgl3FileHandle(XDGHome + ".shatteredpixel/", Files.FileType.External);
FileHandle oldBase = new Lwjgl3FileHandle(".shatteredpixel/shattered-pixel-dungeon/", Files.FileType.External);
FileHandle newBase = new Lwjgl3FileHandle(XDGHome + ".shatteredpixel/shattered-pixel-dungeon/", Files.FileType.External);
if (oldBase.exists()){
if (newBase.exists()){
oldBase.deleteDirectory();