fix creating modpacks mistaking mod and original

pull/9/head
Miepee 4 years ago
parent 3d567cb78a
commit d23026401a

@ -252,7 +252,7 @@ public partial class ModPacker : Form
} }
} }
LoadProfileParameters(ProfileOperatingSystems.Windows); LoadProfileParameters(ProfileOperatingSystems.Windows);
(successful, errorCode) = Core.CreateModPack(profile, windowsPath, originalPath, apkPath, output); (successful, errorCode) = Core.CreateModPack(profile, originalPath, windowsPath, apkPath, output);
if (!successful) if (!successful)
{ {
MessageBox.Show(errorCode, "Error", MessageBoxButtons.OK, MessageBoxType.Error); MessageBox.Show(errorCode, "Error", MessageBoxButtons.OK, MessageBoxType.Error);
@ -293,7 +293,7 @@ public partial class ModPacker : Form
} }
} }
LoadProfileParameters(ProfileOperatingSystems.Linux); LoadProfileParameters(ProfileOperatingSystems.Linux);
(successful, errorCode) = Core.CreateModPack(profile, linuxPath, originalPath, apkPath, output); (successful, errorCode) = Core.CreateModPack(profile, originalPath, linuxPath, apkPath, output);
if (!successful) if (!successful)
{ {
MessageBox.Show(errorCode, "Error", MessageBoxButtons.OK, MessageBoxType.Error); MessageBox.Show(errorCode, "Error", MessageBoxButtons.OK, MessageBoxType.Error);

@ -264,7 +264,7 @@ public static class Core
using var stream = File.OpenRead(filename); using var stream = File.OpenRead(filename);
using var md5 = MD5.Create(); using var md5 = MD5.Create();
byte[] hash = md5.ComputeHash(stream); byte[] hash = md5.ComputeHash(stream);
return BitConverter.ToString(hash).Replace("-", "").ToLowerInvariant(); return BitConverter.ToString(hash).Replace("-", "").ToLower();
} }
public static void CopyFilesRecursive(DirectoryInfo source, string[] blacklist, string destination) public static void CopyFilesRecursive(DirectoryInfo source, string[] blacklist, string destination)

Loading…
Cancel
Save