New entry

This commit is contained in:
Razmoth
2023-02-07 21:16:13 +04:00
parent d768e85916
commit 2b4ec69ce7
3 changed files with 21 additions and 1 deletions

View File

@@ -361,5 +361,20 @@ namespace AssetStudio
return new FileReader(reader.FullPath, ms);
}
public static FileReader ParseShiningNikki(FileReader reader)
{
var data = reader.ReadBytes(0x1000);
var idx = data.Search("UnityFS");
if (idx == -1)
{
reader.Position = 0;
return reader;
}
var stream = new BlockStream(reader.BaseStream, idx);
return new FileReader(reader.FullPath, stream);
}
return new FileReader(reader.FullPath, ms);
}
}
}