Example #1
0
        private static int ExtractWebDataFile(string webFileName, AssetReader reader)
        {
            StatusStripUpdate($"Decompressing {Path.GetFileName(webFileName)} ...");
            var webFile = new WebFile(reader);

            reader.Dispose();
            if (webFile.fileList.Length > 0)
            {
                var extractPath = webFileName + "_unpacked\\";
                return(ExtractStreamFile(extractPath, webFile.fileList));
            }
            return(0);
        }
Example #2
0
        private static int ExtractBundleFile(string bundleFileName, AssetReader reader)
        {
            StatusStripUpdate($"Decompressing {Path.GetFileName(bundleFileName)} ...");
            var bundleFile = new BundleFile(reader, bundleFileName);

            reader.Dispose();
            if (bundleFile.fileList.Length > 0)
            {
                var extractPath = bundleFileName + "_unpacked\\";
                return(ExtractStreamFile(extractPath, bundleFile.fileList));
            }
            return(0);
        }