static int Main(string[] args)
{
if (args.Length != 2)
{
Console.WriteLine("Bad args");
return(1);
}
if (Directory.Exists(args[0]) == false)
{
Console.WriteLine("Source dir {0} doesn't exist", args[0]);
return(1);
}
if (Directory.Exists(args[1]) == false)
{
Console.WriteLine("Source dir {0} doesn't exist", args[1]);
return(1);
}
string srcPath = args[0];
string dstPath = args[1];
var loader = new TileSetLoader(srcPath);
loader.Load();
CreatePng(loader, dstPath);
using (var device = GraphicsDevice.New())
CreateDds(device, loader, dstPath);
return(0);
}