Quick appendum to auto updater fix

pull/21/head
Miepee 5 years ago
parent 06ba905357
commit b5f9e8a570

@ -172,7 +172,7 @@ namespace AM2RLauncher
File.Copy(file.FullName, CrossPlatformOperations.CURRENTPATH + "/" + file.Name, true); File.Copy(file.FullName, CrossPlatformOperations.CURRENTPATH + "/" + file.Name, true);
} }
// for windows, the actual application is in "AM2RLauncher.dll". Which means, we need to update the lib folder as well. // for windows, the actual application is in "AM2RLauncher.dll". Which means, we need to update the lib folder as well.
if (currentPlatform.IsWinForms) if (currentPlatform.IsWinForms && Directory.Exists(CrossPlatformOperations.CURRENTPATH + "/lib"))
{ {
// Directory.Move(CrossPlatformOperations.CURRENTPATH + "/lib", CrossPlatformOperations.CURRENTPATH + "/oldLib"); // Directory.Move(CrossPlatformOperations.CURRENTPATH + "/lib", CrossPlatformOperations.CURRENTPATH + "/oldLib");
// So, because Windows behavior is dumb... // So, because Windows behavior is dumb...

Loading…
Cancel
Save