mirror of
https://github.com/aelurum/AssetStudio.git
synced 2025-05-25 05:40:21 -04:00
Add support for obfuscated unity versions
This commit is contained in:
parent
6ea1ff3e96
commit
f7e6d23084
@ -69,7 +69,23 @@ namespace AssetStudio
|
|||||||
}
|
}
|
||||||
if (header.m_Version >= SerializedFileFormatVersion.Unknown_7)
|
if (header.m_Version >= SerializedFileFormatVersion.Unknown_7)
|
||||||
{
|
{
|
||||||
version = new UnityVersion(reader.ReadStringToNull());
|
var versionPos = reader.Position;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
version = new UnityVersion(reader.ReadStringToNull());
|
||||||
|
}
|
||||||
|
catch (NotSupportedException e)
|
||||||
|
{
|
||||||
|
if (assetsManager.SpecifyUnityVersion == null)
|
||||||
|
{
|
||||||
|
Logger.Warning(e.Message);
|
||||||
|
version = new UnityVersion();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
version = assetsManager.SpecifyUnityVersion;
|
||||||
|
reader.Position = versionPos;
|
||||||
|
reader.ReadBytes(version.ToString().Length + 1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user