Comply with GBATemp and minor text changes

This commit is contained in:
StudentBlake 2018-06-29 15:12:51 -04:00
parent 12f25e0fdb
commit 4c4c6f0fa3

View file

@ -115,12 +115,27 @@ namespace XCI_Explorer
if (!File.Exists("keys.txt")) if (!File.Exists("keys.txt"))
{ {
MessageBox.Show("keys.txt is missing."); if (MessageBox.Show("keys.txt is missing.\nDo you want to automatically download it now?", "XCI Explorer", MessageBoxButtons.YesNo) == DialogResult.Yes)
{
Process process = new Process();
process.StartInfo = new ProcessStartInfo
{
WindowStyle = ProcessWindowStyle.Hidden,
FileName = "Get-keys.txt.bat"
};
process.Start();
process.WaitForExit();
}
if (!File.Exists("keys.txt"))
{
MessageBox.Show("keys.txt failed to load.\nPlease include keys.txt in this location.");
Environment.Exit(0); Environment.Exit(0);
} }
}
if (!File.Exists("hactool.exe")) if (!File.Exists("hactool.exe"))
{ {
MessageBox.Show("hactool is missing."); MessageBox.Show("hactool.exe is missing.");
Environment.Exit(0); Environment.Exit(0);
} }
getKey(); getKey();