static void Create(string[] args) { if (args.Length == 2) { PakArchive.CreateNew(args[1], args[1] + ".PAK"); } else { Console.WriteLine("Invalid arguments!"); } }
static void Open(string[] args) { if (args.Length == 2) { _archive = PakArchive.Load(args[1]); _path = args[1]; Console.WriteLine("Archive opened!"); } else { Console.WriteLine("Invalid arguments!"); } }