mirror of
https://github.com/crskycode/GARbro.git
synced 2026-07-08 01:30:18 +08:00
(Unity): implemented Texture2D images.
This commit is contained in:
@@ -39,6 +39,7 @@ namespace GameRes.Formats.Unity
|
||||
IBinaryStream m_input;
|
||||
int m_format;
|
||||
|
||||
public Stream Source { get { return m_input.AsStream; } }
|
||||
public int Format { get { return m_format; } }
|
||||
public long Position {
|
||||
get { return m_input.Position; }
|
||||
@@ -59,6 +60,11 @@ namespace GameRes.Formats.Unity
|
||||
public Func<long> ReadInt64;
|
||||
public Func<long> ReadId;
|
||||
|
||||
public void SetupReaders (Asset asset)
|
||||
{
|
||||
SetupReaders (asset.Format, asset.IsLittleEndian);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Setup reader endianness accordingly.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user