mirror of
https://github.com/crskycode/GARbro.git
synced 2024-10-23 07:38:16 +08:00
(UnityFS): adjusted texture reader.
This commit is contained in:
parent
6c23aa0bed
commit
1aec603bba
@ -323,6 +323,8 @@ namespace GameRes.Formats.Unity
|
||||
return ReadTextAsset (file, obj);
|
||||
else if ("Texture2D" == type)
|
||||
type = "image";
|
||||
else if ("AssetBundle" == type)
|
||||
return null;
|
||||
|
||||
return new AssetEntry {
|
||||
Type = type,
|
||||
|
@ -214,7 +214,8 @@ namespace GameRes.Formats.Unity
|
||||
|
||||
ImageData Unpack ()
|
||||
{
|
||||
m_texture.LoadData (m_reader);
|
||||
if (null == m_texture.m_Data || 0 == m_texture.m_Data.Length)
|
||||
m_texture.LoadData (m_reader);
|
||||
byte[] pixels;
|
||||
switch (m_texture.m_TextureFormat)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user