You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MessageBox.Show("The temporary directory for backing up MC data already exists. This probably means that we failed last time backing up the data. Please back the directory up manually.");
116
+
thrownewException("Temporary dir exists");
117
+
}
118
+
Debug.WriteLine("Moving Minecraft data to: "+tmpDir);
119
+
Directory.Move(data.LocalFolder.Path,tmpDir);
120
+
}
121
+
122
+
privatevoidRestoreMove(stringfrom,stringto){
123
+
foreach(varfinDirectory.EnumerateFiles(from)){
124
+
stringft=Path.Combine(to,Path.GetFileName(f));
125
+
if(File.Exists(ft)){
126
+
if(MessageBox.Show("The file "+ft+" already exists in the destination.\nDo you want to replace it? The old file will be lost otherwise.","Restoring data directory from previous installation",MessageBoxButton.YesNo)!=MessageBoxResult.Yes)
if(File.Exists(tp)&&MessageBox.Show("The file "+tp+" is not a directory. Do you want to remove it? The data from the old directory will be lost otherwise.","Restoring data directory from previous installation",MessageBoxButton.YesNo)!=MessageBoxResult.Yes)
if(MessageBox.Show("A non-Development Mode version is installed on this system. It will need to be removed in a way which does not preserve the data (including your saved worlds). Are you sure you want to continue?","Warning",MessageBoxButton.YesNoCancel)!=MessageBoxResult.Yes)
0 commit comments