static void Main(string[] args)
{
try
{
Console.WriteLine("--- " + Properties.Resources.AppTitleLong + " ---");
if (args.Length == 0)
{
Console.WriteLine("No input arguments were found!");
Console.WriteLine($"Drag and drop one or more files on the EXE to convert.{Environment.NewLine}Supported: anim.txt, prt, mtrl, brg");
}
foreach (string f in args)
{
try
{
Console.WriteLine("Processing " + Path.GetFileName(f) + "...");
Convert(f);
}
catch (Exception ex)
{
Console.WriteLine("Failed to convert the file!");
Console.WriteLine(ex.ToString());
}
finally
{
Console.WriteLine();
Console.WriteLine();
}
}
}
finally
{
Console.WriteLine("Press any key to exit...");
Console.ReadKey(true);
}
}