mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-27 15:44:00 +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];
|
tex.m_Data = new byte[entry.Size];
|
||||||
input.Read (tex.m_Data, 0, tex.m_Data.Length);
|
input.Read (tex.m_Data, 0, tex.m_Data.Length);
|
||||||
var bin_input = BinaryStream.FromStream (input, entry.Name);
|
var tex_reader = new AssetReader (input, entry.Name);
|
||||||
var tex_reader = new AssetReader (bin_input);
|
|
||||||
tex_reader.SetupReaders (obj.Asset);
|
tex_reader.SetupReaders (obj.Asset);
|
||||||
return new Texture2DDecoder (tex, tex_reader);
|
return new Texture2DDecoder (tex, tex_reader);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user