Exemplo n.º 1
0
        public void RepackFile(string inputPath, string outputFile, bool compress)
        {
            var fileName  = Path.GetFileName(outputFile);
            var extension = Path.GetExtension(outputFile);

            if (fileName == "ui_e.par" || fileName == "ui_c.par")
            {
                UIParFile.Repack(inputPath, outputFile, compress);
            }
            else if (extension.StartsWith(".par"))
            {
                ParFile.Repack(inputPath, outputFile, compress);
            }
        }
Exemplo n.º 2
0
        public void ExtractFile(string inputFile, string outputPath)
        {
            var fileName  = Path.GetFileName(inputFile);
            var extension = Path.GetExtension(inputFile);

            if (fileName == "ui_e.par" || fileName == "ui_c.par")
            {
                UIParFile.Extract(inputFile, outputPath);
            }
            else if (extension.StartsWith(".par"))
            {
                ParFile.Extract(inputFile, outputPath);
            }
        }