Exemplo n.º 1
0
        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);
            }
        }
Exemplo n.º 2
0
        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);
            }
        }
Exemplo n.º 3
0
 public ConfigForm(Mamesaver saver)
 {
     InitializeComponent();
     this.saver = saver;
 }
Exemplo n.º 4
0
 public ConfigForm(Mamesaver saver)
 {
     InitializeComponent();
     this.saver = saver;
 }