mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-23 13:45:34 +08:00
(ASSET): use second AssetReader constructor.
This commit is contained in:
parent
81bfe4bd33
commit
8d3a584072
@ -91,8 +91,7 @@ namespace GameRes.Formats.Unity
|
||||
{
|
||||
tex.m_Data = new byte[entry.Size];
|
||||
input.Read (tex.m_Data, 0, tex.m_Data.Length);
|
||||
var bin_input = BinaryStream.FromStream (input, entry.Name);
|
||||
var tex_reader = new AssetReader (bin_input);
|
||||
var tex_reader = new AssetReader (input, entry.Name);
|
||||
tex_reader.SetupReaders (obj.Asset);
|
||||
return new Texture2DDecoder (tex, tex_reader);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user