Add support for bundles with obfuscated unity version

This commit is contained in:
VaDiM
2025-07-24 15:59:38 +03:00
parent 6b41a36c7d
commit efca2a7557
3 changed files with 22 additions and 7 deletions
+4 -6
View File
@@ -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;
}