(Unity): implemented 'resources.assets' archives.

This commit is contained in:
morkt
2017-12-15 01:16:16 +04:00
parent 59924e0285
commit f071bef660
4 changed files with 287 additions and 4 deletions

View File

@@ -46,9 +46,13 @@ namespace GameRes.Formats.Unity
set { m_input.Position = value; }
}
public AssetReader (Stream input, string name)
public AssetReader (Stream input, string name) : this (BinaryStream.FromStream (input, name))
{
m_input = BinaryStream.FromStream (input, name);
}
public AssetReader (IBinaryStream input)
{
m_input = input;
SetupReaders (0, false);
}