mirror of
https://github.com/aelurum/AssetStudio.git
synced 2025-05-27 22:00:23 -04:00
Show assumed unity ver in some cases for assets with stripped ver
This commit is contained in:
parent
3cc6bed844
commit
684bf5a874
@ -270,7 +270,7 @@ namespace AssetStudio
|
|||||||
{
|
{
|
||||||
assetsFile.SetVersion(assetBundleUnityVer);
|
assetsFile.SetVersion(assetBundleUnityVer);
|
||||||
}
|
}
|
||||||
CheckStrippedVersion(assetsFile);
|
CheckStrippedVersion(assetsFile, assetBundleUnityVer);
|
||||||
assetsFileList.Add(assetsFile);
|
assetsFileList.Add(assetsFile);
|
||||||
assetsFileListHash.Add(assetsFile.fileName);
|
assetsFileListHash.Add(assetsFile.fileName);
|
||||||
}
|
}
|
||||||
@ -474,11 +474,14 @@ namespace AssetStudio
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void CheckStrippedVersion(SerializedFile assetsFile)
|
public void CheckStrippedVersion(SerializedFile assetsFile, UnityVersion bundleUnityVer = null)
|
||||||
{
|
{
|
||||||
if (assetsFile.version.IsStripped && specifiedUnityVersion == null)
|
if (assetsFile.version.IsStripped && specifiedUnityVersion == null)
|
||||||
{
|
{
|
||||||
throw new NotSupportedException("The asset's Unity version has been stripped, please set the version in the options");
|
var msg = "The asset's Unity version has been stripped, please set the version in the options.";
|
||||||
|
if (bundleUnityVer != null && !bundleUnityVer.IsStripped)
|
||||||
|
msg += $"\n\nAssumed Unity version based on asset bundle: {bundleUnityVer}";
|
||||||
|
throw new NotSupportedException(msg);
|
||||||
}
|
}
|
||||||
if (specifiedUnityVersion != null)
|
if (specifiedUnityVersion != null)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user