public static void List(string[] args) { if (!File.Exists(args[1])) { Console.Error.WriteLine("File '{0}' doesn't exist!", args[1]); } GT3Vol vol = new GT3Vol(args[1]); vol.List(); }
static void Main(string[] args) { Console.Error.WriteLine("Gran Turismo 2/2K/3 VOL File Exploder/Rebuilder - http;//www.airesoft.co.uk\n"); if (args.Length < 2) { PrintUsage(); return; } string lowerArg = args[0].ToLower(); switch (lowerArg) { case "-e2": { ExplodeVol(args); } break; case "-r2": { Rebuilder.RebuildGT2(args); } break; case "-l2": { DumpGT2Toc(args); } break; case "-e2k": { GT2K.Explode2KVol(args); } break; case "-l2k": { GT2K.List2KVol(args); } break; case "-e3": { GT3Vol.Explode(args, new VolFile.ExplodeProgressCallback(WriteToConsole)); } break; //case "-r3": // { // GT3Rebuild.Rebuild(args); // } // break; case "-l3": { GT3Vol.List(args); } break; default: { PrintUsage(); } break; } }