mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-13 20:24:16 +01:00
Fix plugin version sorting logic
This commit is contained in:
parent
de29cd7d36
commit
e0e097fe48
1 changed files with 6 additions and 1 deletions
|
|
@ -139,7 +139,12 @@ namespace Dalamud.Plugin
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
var sortedVersions = versions.OrderBy(x => int.Parse(x.Name.Replace(".", "")));
|
var sortedVersions = versions.OrderBy(dirInfo =>
|
||||||
|
{
|
||||||
|
var success = Version.TryParse(dirInfo.Name, out Version version);
|
||||||
|
if (!success) { Log.Debug("Unparseable version: {0}", dirInfo.Name); }
|
||||||
|
return version;
|
||||||
|
});
|
||||||
var latest = sortedVersions.Last();
|
var latest = sortedVersions.Last();
|
||||||
|
|
||||||
var localInfoFile = new FileInfo(Path.Combine(latest.FullName, $"{installed.Name}.json"));
|
var localInfoFile = new FileInfo(Path.Combine(latest.FullName, $"{installed.Name}.json"));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue