v1.2.0: made conversion of pre-1.2.0 linux save DIR more precise
This commit is contained in:
parent
69ce3f0c09
commit
0b77cff082
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue
Block a user