support Unity 2017.1.0

fixed show "bundle file" original file
This commit is contained in:
Perfare
2017-07-15 15:27:09 +08:00
parent 9687f823fb
commit 14ec7c8259
5 changed files with 20 additions and 7 deletions

View File

@ -136,6 +136,7 @@ namespace Unity_Studio
AssetsFile assetsFile = new AssetsFile(memFile.fileName, new EndianStream(memFile.memStream, EndianType.BigEndian));
if (assetsFile.valid)
{
assetsFile.bundlePath = bundleFileName;
if (assetsFile.fileGen == 6 && Path.GetFileName(bundleFileName) != "mainData") //2.6.x and earlier don't have a string version before the preload table
{
//make use of the bundle file version