varresult=MessageBox.Show("Modded 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);
varresult=MessageBox.Show("profile.xml found. This file is used by the AM2RLauncher to determine profile stats and its inclusion may make the profile uninstallable. Are you sure you want to continue?","WARNING",MessageBoxButtons.YesNo,MessageBoxType.Warning);
if(result!=DialogResult.Yes)
{
AbortPatch();
return;
}
}
ProfileOperatingSystems.Windows=>windowsPath,
ProfileOperatingSystems.Linux=>linuxPath,
ProfileOperatingSystems.Mac=>macPath,
_=>null
};
stringoutput;
using(varsaveFile=newSaveFileDialog{Title="Save Windows mod profile",Filters={zipFileFilter}})
using(varsaveFile=newSaveFileDialog{Title=$"Save {os.ToString()} mod profile",Filters={zipFileFilter}})
{
if(saveFile.ShowDialog(this)==DialogResult.Ok)
output=saveFile.FileName;
else
{
createLabel.Text="Mod packaging aborted!";
return;
returnfalse;
}
}
// Some filepickers don't automatically set the file extension
varresult=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(zipfile.Entries.All(f=>f.Name!="profile.xml"))
returntrue;
varresult=MessageBox.Show("profile.xml found. This file is used by the AM2RLauncher to determine profile stats and its inclusion may make the profile uninstallable. Are you sure you want to continue?","WARNING",MessageBoxButtons.YesNo,MessageBoxType.Warning);
varresult=MessageBox.Show("Modded 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)
{
AbortPatch();
@ -289,39 +287,31 @@ public partial class ModPacker : Form
varresult=MessageBox.Show("profile.xml found. This file is used by the AM2RLauncher to determine profile stats and its inclusion may make the profile uninstallable. Are you sure you want to continue?","WARNING",MessageBoxButtons.YesNo,MessageBoxType.Warning);if(result!=DialogResult.Yes)
varresult=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)
{
AbortPatch();
return;
}
}
using(varsaveFile=newSaveFileDialog{Title="Save Linux mod profile",Filters={zipFileFilter}})
{
if(saveFile.ShowDialog(this)==DialogResult.Ok)
output=saveFile.FileName;
else
{
createLabel.Text="Mod packaging aborted!";
return;
}
}
// Some filepickers don't automatically set the file extension
@ -333,37 +323,11 @@ public partial class ModPacker : Form
AbortPatch();
}
if(macZip.Entries.Any(f=>f.Name=="profile.xml"))
{
varresult=MessageBox.Show("profile.xml found. This file is used by the AM2RLauncher to determine profile stats and its inclusion may make the profile uninstallable. Are you sure you want to continue?","WARNING",MessageBoxButtons.YesNo,MessageBoxType.Warning);
if(result!=DialogResult.Yes)
AbortPatch();
}
if(!CheckForProfileXML(macZip))
return;
using(SaveFileDialogsaveFile=newSaveFileDialog{Title="Save Mac mod profile",Filters={zipFileFilter}})
{
if(saveFile.ShowDialog(this)==DialogResult.Ok)
output=saveFile.FileName;
else
{
createLabel.Text="Mod packaging aborted!";
return;
}
}
// Some filepickers don't automatically set the file extension