(Unity): check for 2017.* assets version.

This commit is contained in:
morkt 2018-07-25 10:04:49 +04:00
parent 6b28c28a56
commit 2f7a894268

View File

@ -169,7 +169,7 @@ namespace GameRes.Formats.Unity
tex.Load (input); tex.Load (input);
if (0 == tex.m_DataLength) if (0 == tex.m_DataLength)
{ {
if (asset.Tree.Version == "2017.2.0f3") if (asset.Tree.Version.StartsWith ("2017.")) // "2017.2.0f3" || "2017.1.1p1"
input.ReadInt64(); input.ReadInt64();
var stream_data = new StreamingInfo(); var stream_data = new StreamingInfo();
stream_data.Load (input); stream_data.Load (input);