diff --git a/CodeWalker.Console/Program.cs b/CodeWalker.Console/Program.cs index 5c60a8ad..3026c0de 100644 --- a/CodeWalker.Console/Program.cs +++ b/CodeWalker.Console/Program.cs @@ -1,28 +1,19 @@ using CodeWalker.GameFiles; using System; -using System.Collections.Generic; -using System.Data; using System.IO; -using System.Linq; -using System.Numerics; namespace CodeWalker.Console { internal class Program { - - const string USAGE = - #region USAGE -@"Usage: -cw_cli source output -"; - #endregion - private static void Main(string[] args) { try { - YdtFile file = XmlYtd.GetYtd("", ""); + string content = File.ReadAllText(args[1]); + YtdFile file = XmlYtd.GetYtd(content, ""); + byte[] outputBytes = file.Save(); + File.WriteAllBytes(args[2], outputBytes); Environment.ExitCode = 0; } catch (ConsoleArgumentException) diff --git a/CodeWalker.sln b/CodeWalker.sln index 5681222b..ca71fcda 100644 --- a/CodeWalker.sln +++ b/CodeWalker.sln @@ -130,6 +130,8 @@ Global {F5A776B0-2F1A-4C36-87B3-86206AC4B439}.Release|x64.Build.0 = Release|Any CPU {F5A776B0-2F1A-4C36-87B3-86206AC4B439}.Release|x86.ActiveCfg = Release|Any CPU {F5A776B0-2F1A-4C36-87B3-86206AC4B439}.Release|x86.Build.0 = Release|Any CPU + {FFA776B0-2F1A-4C36-87B3-86206AC4B440}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {FFA776B0-2F1A-4C36-87B3-86206AC4B440}.Debug|Any CPU.Build.0 = Debug|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE