예제 #1
0
        static public void RebuildGT2(string[] args)
        {
            Rebuilder      r       = new Rebuilder();
            List <FSEntry> entries = r.ScanAndCompress(args[1], args.Length >= 4);
            HeaderInfo     hi      = r.BuildHeader(entries);

            r.WriteNewVol(args[2], hi, entries, new VolFile.ExplodeProgressCallback(Console.WriteLine));
        }
예제 #2
0
        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;
            }
        }