static void Main(string[] args) { Application.ThreadException += new System.Threading.ThreadExceptionEventHandler(Application_ThreadException); try { string[] arguments = new string[] { "/c" }; if (args.Length != 0) //default to config if no options passed { arguments = args; } #if DEBUG Log("Mamesaver started with args " + string.Join(",", args)); #endif Mamesaver saver = new Mamesaver(); switch (arguments[0].Trim().Substring(0, 2).ToLower()) { case "/c": //TODO: Catch display properties window handle and set it as parent saver.ShowConfig(); break; case "/s": saver.Run(); break; case "/p": // do nothing break; } } catch (Exception x) { Log(x); } }
static void Main(string[] args) { Application.ThreadException += new System.Threading.ThreadExceptionEventHandler(Application_ThreadException); try { string[] arguments = new string[] {"/c"}; if (args.Length != 0) //default to config if no options passed arguments = args; #if DEBUG Log("Mamesaver started with args " + string.Join(",", args)); #endif Mamesaver saver = new Mamesaver(); switch (arguments[0].Trim().Substring(0, 2).ToLower()) { case "/c": //TODO: Catch display properties window handle and set it as parent saver.ShowConfig(); break; case "/s": saver.Run(); break; case "/p": // do nothing break; } } catch(Exception x) { Log(x); } }
public ConfigForm(Mamesaver saver) { InitializeComponent(); this.saver = saver; }
public ConfigForm(Mamesaver saver) { InitializeComponent(); this.saver = saver; }