public LauncherForm() { Fileworks fw = new Fileworks(); LogBuilder lb = new LogBuilder(); InitializeComponent(); if (!Directory.Exists("cstrike")) { cscbx.Enabled = false; lb.AddLine("cstrike folder not found. cscbx radiobtn disabled."); } if (!Directory.Exists("ag")) { agcbx.Enabled = false; lb.AddLine("ag folder not found. agcbx radiobtn disabled."); } if (!Directory.Exists("bshift")) { bscbx.Enabled = false; lb.AddLine("bshift folder not found. bscbx radiobtn disabled."); } if (!Directory.Exists("gearbox")) { ofcbx.Enabled = false; lb.AddLine("gearbox folder not found. ofcbx radiobtn disabled."); } }
static void Term(bool printinlogbuilder = true) { Fileworks fw = new Fileworks(); LogBuilder lb = new LogBuilder(); int debug = fw.ReadInt("hba_base/DebugMode.parm"); if (debug == 0) { if (printinlogbuilder == true) { lb.AddLine("Terminating..."); } Environment.Exit(0); } }