mirror of
https://github.com/aelurum/AssetStudio.git
synced 2025-05-25 05:40:21 -04:00
Fixed bug
This commit is contained in:
parent
c2ae9e63e0
commit
f5aef9486f
@ -217,7 +217,7 @@ namespace AssetStudio
|
||||
classesListView.EndUpdate();
|
||||
}
|
||||
|
||||
var types = exportableAssets.Select(x => x.Type).Distinct().ToArray();
|
||||
var types = exportableAssets.Select(x => x.Type).Distinct().OrderBy(x => x.ToString()).ToArray();
|
||||
foreach (var type in types)
|
||||
{
|
||||
var typeItem = new ToolStripMenuItem
|
||||
|
@ -199,20 +199,14 @@ namespace AssetStudio
|
||||
}
|
||||
|
||||
buildType = Regex.Replace(unityVersion, @"\d", "").Split(new[] { "." }, StringSplitOptions.RemoveEmptyEntries);
|
||||
var firstVersion = int.Parse(unityVersion.Split('.')[0]);
|
||||
version = Regex.Matches(unityVersion, @"\d").Cast<Match>().Select(m => int.Parse(m.Value)).ToArray();
|
||||
if (firstVersion > 5)//2017 and up
|
||||
{
|
||||
var nversion = new int[version.Length - 3];
|
||||
nversion[0] = firstVersion;
|
||||
Array.Copy(version, 4, nversion, 1, version.Length - 4);
|
||||
version = nversion;
|
||||
}
|
||||
var versionSplit = Regex.Replace(unityVersion, @"\D", ".").Split(new[] { "." }, StringSplitOptions.RemoveEmptyEntries);
|
||||
version = versionSplit.Select(int.Parse).ToArray();
|
||||
|
||||
valid = true;
|
||||
}
|
||||
catch
|
||||
{
|
||||
// ignored
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user