Start fixing the editor

This commit is contained in:
Paul Chote
2010-12-29 19:03:45 +13:00
parent 58797c0d37
commit 829fe6530a
5 changed files with 47 additions and 38 deletions

View File

@@ -45,7 +45,7 @@ namespace OpenRA
WidgetLoader = new WidgetLoader( this );
}
IEnumerable<string> FindMapsIn(string dir)
public static IEnumerable<string> FindMapsIn(string dir)
{
string[] NoMaps = { };
@@ -62,7 +62,7 @@ namespace OpenRA
{
var paths = mods.SelectMany(p => FindMapsIn("mods/" + p + "/maps/"));
return paths.Select(p => new MapStub(FileSystem.OpenPackage(p, int.MaxValue)))
return paths.Select(p => new MapStub(p))
.ToDictionary(m => m.Uid);
}