Beispiel #1
0
 private void enDebug_Click(object sender, EventArgs e)
 {
     if (debugCheckbox.Checked)
     {
         DebugStuff.EnableDebugging(is64bin, modPath);
         DebugStatusInfo();
     }
     else
     {
         MessageBox.Show("Please select that you understand what debugging is.", "Read info first", MessageBoxButtons.OK, MessageBoxIcon.Warning);
     }
 }
Beispiel #2
0
        void DebugStatusInfo()
        {
            enDebug.Enabled  = false;
            disDebug.Enabled = false;
            switch (DebugStuff.checkDebugStatus())
            {
            case 1:     //32 normal
                debugStatus.ForeColor  = Color.Red;
                debugStatus.Text       = "Debugging is disabled (32-bit)";
                debugStatus2.ForeColor = Color.Green;
                debugStatus2.Text      = "You can enable debugging!";
                enDebug.Enabled        = true;
                is64bin = false;
                break;

            case 2:     //32 debug
                debugStatus.ForeColor  = Color.Green;
                debugStatus.Text       = "Debugging is enabled (32-bit)";
                debugStatus2.ForeColor = Color.Green;
                debugStatus2.Text      = "You can debug your mods!";
                disDebug.Enabled       = true;
                is64bin = false;
                break;

            case 3:     //64 normal
                debugStatus.ForeColor  = Color.Red;
                debugStatus.Text       = "Debugging is disabled (64-bit)";
                debugStatus2.ForeColor = Color.Green;
                debugStatus2.Text      = "You can enable debugging!";
                enDebug.Enabled        = true;
                is64bin = true;
                break;

            case 4:     //64 debug
                debugStatus.ForeColor  = Color.Green;
                debugStatus.Text       = "Debugging is enabled (64-bit)";
                debugStatus2.ForeColor = Color.Green;
                debugStatus2.Text      = "You can debug your mods!";
                disDebug.Enabled       = true;
                is64bin = true;
                break;

            default:     //unknown mono detected (updated unity?)
                debugStatus.ForeColor  = Color.Red;
                debugStatus.Text       = "Unknown files detected!";
                debugStatus2.ForeColor = Color.Red;
                debugStatus2.Text      = "Cannot enable debugging!";
                is64bin = true;
                break;
            }
        }
Beispiel #3
0
 private void disDebug_Click(object sender, EventArgs e)
 {
     DebugStuff.DisableDebugging();
     DebugStatusInfo();
 }