Esempio n. 1
0
        static void Main(string[] args)
        {
            Console.OutputEncoding = Encoding.UTF8;
            Console.WriteLine(string.Format("GARbro - Game Resource browser, version {0}\n2014-2019 by mørkt, published under a MIT license", Assembly.GetAssembly(typeof(FormatCatalog)).GetName().Version));
            Console.WriteLine("-----------------------------------------------------------------------------\n");

            FormatCatalog.Instance.ParametersRequest += OnParametersRequest;
            //var listener = new TextWriterTraceListener(Console.Error);
            //Trace.Listeners.Add(listener);

            var browser = new ConsoleBrowser();

            browser.Run(args);

#if DEBUG
            Console.Read();
#endif
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            if (0 == args.Length)
            {
                Usage();
                return;
            }
            var listener = new TextWriterTraceListener(Console.Error);

            Trace.Listeners.Add(listener);
            try
            {
                var browser = new ConsoleBrowser();
                browser.Run(args);
            }
            catch (Exception X)
            {
                Console.Error.WriteLine(X.Message);
            }
        }
Esempio n. 3
0
 static void Main(string[] args)
 {
     Console.OutputEncoding = Encoding.UTF8;
     if (0 == args.Length)
     {
         Usage();
         return;
     }
     var listener = new TextWriterTraceListener (Console.Error);
     Trace.Listeners.Add(listener);
     try
     {
         var browser = new ConsoleBrowser();
         browser.Run (args);
     }
     catch (Exception X)
     {
         Console.Error.WriteLine (X.Message);
     }
 }