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;
}
}
using(varsaveFile=newSaveFileDialog{Title="Save Windows mod profile",Filters={zipFileFilter}})
{
if(saveFile.ShowDialog(this)==DialogResult.Ok)
@ -229,6 +250,29 @@ public partial class ModPacker : Form
if(linuxCheckBox.Checked.Value)
{
/*
if(!File.Exists(tempModPath+"/"+runnerName))
{//TODO: put this onto the outer method
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(false,"");
}
}
if(File.Exists(tempModPath+"profile.xml"))
{
//TODO: put this onto the outer method
/*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(false,"");
}
}*/
using(varsaveFile=newSaveFileDialog{Title="Save Linux mod profile",Filters={zipFileFilter}})
{
if(saveFile.ShowDialog(this)==DialogResult.Ok)
@ -249,6 +293,20 @@ public partial class ModPacker : Form
varresult=MessageBox.Show("Modded Mac 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,MessageBoxIcon.Warning);
if(result!=DialogResult.Yes)
AbortPatch();
}
if(File.Exists(tempModPath+"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,MessageBoxIcon.Warning);
if(result!=DialogResult.Yes)
AbortPatch();
}*/
using(SaveFileDialogsaveFile=newSaveFileDialog{Title="Save Mac mod profile",Filters={zipFileFilter}})
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();
return(false,"");
}*/
}
if(File.Exists(tempModPath+"profile.xml"))
{
//TODO: put this onto the outer method
/*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 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(false,"");
}*/
}
if(File.Exists(tempModPath+"profile.xml"))
{
//TODO: put this onto the outer method
/*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 Mac 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,MessageBoxIcon.Warning);
if(result!=DialogResult.Yes)
AbortPatch();*/
}
if(File.Exists(tempModPath+"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,MessageBoxIcon.Warning);
// Launch process and wait for exit. using statement automatically disposes the object for us!
usingvarproc=newProcess{StartInfo=parameters};
proc.Start();
proc.WaitForExit();
// Launch process and wait for exit.
try
{
usingvarproc=newProcess{StartInfo=parameters};
proc.Start();
proc.WaitForExit();
}
catch(Win32Exceptione)
{
thrownewException("Xdelta3 could not be found! For Windows, make sure that the utilities folder exists, for other OS make sure it is installed and in PATH.");