[Blb3] Fixed some blocks parsing, some refactoring

This commit is contained in:
yarik0chka
2024-07-16 02:47:42 +05:00
parent 50d481b7c2
commit 72a4c3c5d6
3 changed files with 52 additions and 91 deletions

View File

@@ -173,7 +173,10 @@ namespace AssetStudio.GUI
var subSavePath = Path.Combine(savePath, reader.FileName + "_unpacked");
var dummyPath = Path.Combine(reader.FullPath, stream.AbsolutePosition.ToString("X8"));
var subReader = new FileReader(dummyPath, stream, true);
total += ExtractBundleFile(subReader, subSavePath);
if (subReader.FileType == FileType.Blb3File)
total += ExtractBlb3File(subReader, subSavePath);
else
total += ExtractBundleFile(subReader, subSavePath);
} while (stream.Remaining > 0);
return total;
}