Fix mac + always assuming linux is incorrect

pull/9/head
Miepee 4 years ago
parent d23026401a
commit 2b4381e77b

@ -263,7 +263,7 @@ public partial class ModPacker : Form
if (linuxCheckBox.Checked.Value) if (linuxCheckBox.Checked.Value)
{ {
var linuxZip = ZipFile.Open(linuxPath, ZipArchiveMode.Read); var linuxZip = ZipFile.Open(linuxPath, ZipArchiveMode.Read);
if (linuxZip.Entries.Any(f => f.FullName != "AM2R") && linuxZip.Entries.Any(f => f.FullName != "runner")) if (linuxZip.Entries.All(f => f.FullName != "AM2R") && linuxZip.Entries.All(f => f.FullName != "runner"))
{ {
var result = MessageBox.Show("Modded Linux game not found, make sure it's not placed in any subfolders.\nCreated profile will likely not be installable, are you sure you want to continue?", "WARNING", MessageBoxButtons.YesNo, MessageBoxType.Warning); var result = MessageBox.Show("Modded Linux game not found, make sure it's not placed in any subfolders.\nCreated profile will likely not be installable, are you sure you want to continue?", "WARNING", MessageBoxButtons.YesNo, MessageBoxType.Warning);
if (result != DialogResult.Yes) if (result != DialogResult.Yes)
@ -327,7 +327,7 @@ public partial class ModPacker : Form
return; return;
} }
} }
Core.CreateModPack(profile, macPath, originalPath, apkPath, output); Core.CreateModPack(profile, originalPath, macPath, apkPath, output);
} }
createLabel.Text = "Mod package(s) created!"; createLabel.Text = "Mod package(s) created!";
} }

Loading…
Cancel
Save