mirror of
https://github.com/aelurum/AssetStudio.git
synced 2026-11-14 11:18:47 -05:00
Add support for bundles with obfuscated unity version
This commit is contained in:
@@ -70,15 +70,13 @@ namespace AssetStudio
|
||||
if (header.m_Version >= SerializedFileFormatVersion.Unknown_7)
|
||||
{
|
||||
var versionPos = reader.Position;
|
||||
try
|
||||
{
|
||||
version = new UnityVersion(reader.ReadStringToNull());
|
||||
}
|
||||
catch (NotSupportedException e)
|
||||
|
||||
var verStr = reader.ReadStringToNull();
|
||||
if (!UnityVersion.TryParse(verStr, out version))
|
||||
{
|
||||
if (assetsManager.SpecifyUnityVersion == null)
|
||||
{
|
||||
Logger.Warning(e.Message);
|
||||
Logger.Warning($"Failed to parse Unity version: \"{verStr}\"");
|
||||
version = new UnityVersion();
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user