コード例 #1
0
ファイル: EMEDF2HTML.cs プロジェクト: AinTunez/DarkScript3
        public static void Generate(string[] args)
        {
            string game     = args[1];
            string outDir   = args[2];
            string emevdDir = args.Length > 3 ? string.Join(" ", args.Skip(3)) : null;

            Console.WriteLine($">>>>>> Generating {game}");
            InstructionDocs docs = new InstructionDocs($"{game}-common.emedf.json");
            EMEDF2HTML      gen  = new EMEDF2HTML();

            gen.AppendEMEDF(docs, emevdDir);
            string outPath = $@"{outDir}\{game}-emedf.html";

            Console.WriteLine($"<<<<<< Out to [{outPath}]");
            using (TextWriter writer = File.CreateText(outPath))
            {
                writer.Write(gen.ToString());
            }
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: AinTunez/DarkScript3
 static void Main(string[] args)
 {
     if (args.Length > 0)
     {
         // Command line things for testing
         AttachConsole(-1);
         if (args.Contains("test"))
         {
             new CondTestingTool().RunTests();
         }
         else if (args.Contains("html"))
         {
             EMEDF2HTML.Generate(args);
         }
         else
         {
             RoundTripTool.Run(args);
         }
         return;
     }
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     Application.Run(new GUI());
 }