Use map folder names instead of paths in the mission browser

This commit is contained in:
abcdefg30
2019-01-08 17:50:37 +01:00
committed by Paul Chote
parent 9ed2ffea91
commit 717b483ce7
4 changed files with 95 additions and 94 deletions

View File

@@ -11,6 +11,7 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading;
using OpenRA.Graphics;
@@ -110,7 +111,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
.Select(p => new
{
Preview = p,
Index = missionMapPaths.IndexOf(Platform.UnresolvePath(p.Package.Name))
Index = missionMapPaths.IndexOf(Path.GetFileName(p.Package.Name))
})
.Where(x => x.Index != -1)
.OrderBy(x => x.Index)