private void btnDebug_Click(object sender, EventArgs e)
{
this.Cursor = Cursors.WaitCursor;
toolStripStatusLabel1.Text = "Loading Dummy Data...";
string romCode = "TEST";
string iniPath = System.Windows.Forms.Application.StartupPath + @"\Data\BattleScriptPro.ini";
if (File.Exists(iniPath))
{
string[] iniFile = File.ReadAllLines(iniPath);
ParseINI(iniFile, romCode);
}
iniPath = System.Windows.Forms.Application.StartupPath + @"\Data\std.bsh";
if (File.Exists(iniPath))
{
string[] iniFile = File.ReadAllLines(iniPath);
ParseHeaderFile(iniFile);
}
toolStripStatusLabel1.Text = "Starting Debug...";
bool success = DebugWrittenScript();
if (success)
{
MessageBox.Show("No errors found.");
}
keywords.Clear();
pointerNames.Clear();
this.Cursor = Cursors.Default;
}