Fix save transferring potentially failing if no save folders exist

pull/45/head
Miepee 3 years ago
parent fc2a500abd
commit 366c2f7673

@ -152,7 +152,7 @@ public partial class MainForm : Form
string oldSavePath = profile.SaveLocation.Replace("~", oldHomePath); string oldSavePath = profile.SaveLocation.Replace("~", oldHomePath);
string newSavePath = profile.SaveLocation.Replace("~", newHomePath); string newSavePath = profile.SaveLocation.Replace("~", newHomePath);
if (Directory.Exists(newSavePath)) continue; if (Directory.Exists(newSavePath) || !Directory.Exists(oldSavePath)) continue;
log.Info($"Transfering save data for {profile.Name} from {oldSavePath} to {newSavePath} ..."); log.Info($"Transfering save data for {profile.Name} from {oldSavePath} to {newSavePath} ...");
HelperMethods.DirectoryCopy(oldSavePath, newSavePath); HelperMethods.DirectoryCopy(oldSavePath, newSavePath);

Loading…
Cancel
Save