v1.2.1: fixed logic with linux save conversion
This commit is contained in:
parent
a83ce804a4
commit
f1e154ec12
|
@ -145,11 +145,11 @@ public class DesktopLauncher {
|
|||
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();
|
||||
} else {
|
||||
oldBase.moveTo(newBase);
|
||||
if (!newBase.exists()) {
|
||||
oldBase.copyTo(newBase.parent());
|
||||
}
|
||||
oldBase.deleteDirectory();
|
||||
oldBase.parent().delete(); //only regular delete, in case of saves from other PD versions
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user