mirror of
https://github.com/aelurum/AssetStudio.git
synced 2026-11-14 11:18:47 -05:00
[GUI] Rework some import options
- Added feature to load and export import options to a file (import options include unity version). - Added option to always decompress bundles to disk. (Related issue: #58 )
This commit is contained in:
@@ -74,13 +74,13 @@ namespace AssetStudio
|
||||
var verStr = reader.ReadStringToNull();
|
||||
if (!UnityVersion.TryParse(verStr, out version))
|
||||
{
|
||||
if (assetsManager.SpecifyUnityVersion == null)
|
||||
if (assetsManager.Options.CustomUnityVersion == null)
|
||||
{
|
||||
Logger.Warning($"Failed to parse Unity version: \"{verStr}\"");
|
||||
version = new UnityVersion();
|
||||
return;
|
||||
}
|
||||
version = assetsManager.SpecifyUnityVersion;
|
||||
version = assetsManager.Options.CustomUnityVersion;
|
||||
reader.Position = versionPos;
|
||||
reader.ReadBytes(version.ToString().Length + 1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user