Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            Console.ForegroundColor = ConsoleColor.Yellow;
            Console.WriteLine("| First time converting might take a while since it is downloading + loading the listfile..");
            Console.ForegroundColor = ConsoleColor.Gray;

            Console.WriteLine("Loading listfile...");
            Listfile.Initialize();

            // var printHelp = false;

            // foreach (var arg in args)
            // {
            //     if (arg[0] == '-')
            //     {
            //         switch (arg.ToLower())
            //         {
            //             case "-nomodel": AdtModels = false; break;
            //             case "-nowater": AdtWater = false; break;
            //             case "-fixhelm": FixHelm = true; break;
            //             default: printHelp = true; break;
            //         }
            //     }
            // }

            // Print help if there are no files to convert.
            // printHelp |= FilesToConvert.Count == 0;
            //
            // if (printHelp)
            //     PrintHelp();

            string     m2        = "nzoth - Copy.m2";
            IConverter converter = new M2(m2, FixHelm);

            if (converter.Fix())
            {
                converter.Save();
            }
        }