v2.0.1: removed support for v1.0 and v1.1 save data
This commit is contained in:
@@ -161,16 +161,6 @@ public class DesktopLauncher {
|
||||
String titleLinux = title.toLowerCase(Locale.ROOT).replace(" ", "-");
|
||||
basePath = XDGHome + "/." + vendor + "/" + titleLinux + "/";
|
||||
|
||||
//copy over files from old linux save DIR, pre-1.2.0
|
||||
FileHandle oldBase = new Lwjgl3FileHandle("." + vendor + "/" + titleLinux + "/", Files.FileType.External);
|
||||
FileHandle newBase = new Lwjgl3FileHandle(basePath, Files.FileType.Absolute);
|
||||
if (oldBase.exists()){
|
||||
if (!newBase.exists()) {
|
||||
oldBase.copyTo(newBase.parent());
|
||||
}
|
||||
oldBase.deleteDirectory();
|
||||
oldBase.parent().delete(); //only regular delete, in case of saves from other PD versions
|
||||
}
|
||||
baseFileType = Files.FileType.Absolute;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user