Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            Application.SetHighDpiMode(HighDpiMode.SystemAware);
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            RTTI.SetGameMode(GameType.HZD);

            var cmds   = new CmdOptions();
            var parser = new Parser(with => with.HelpWriter = Console.Error);

            parser.ParseArguments <CmdOptions>(args)
            .WithParsed(o => cmds = o)
            .WithNotParsed(errs => MessageBox.Show("Unable to parse command line: {0}", String.Join(" ", args)));

            Application.Run(new UI.FormCoreView(cmds));
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            var cmds   = new CmdOptions();
            var parser = new Parser(with => with.HelpWriter = Console.Error);

            parser.ParseArguments <CmdOptions>(args)
            .WithParsed(o => cmds = o)
            .WithNotParsed(errs => Console.WriteLine("Unable to parse command line: {0}", String.Join(" ", args)));

            RTTI.SetGameMode(GameType.HZD);

            var ex = new Extractor()
            {
                OutputDir = cmds.OutputFolder
            };

            ex.Extract(cmds);
        }