fix game failing to load compressed maps; convert 'a path beyond.'

This commit is contained in:
Chris Forbes
2010-12-29 00:55:10 +13:00
parent d4033f57bc
commit fa36c71023
5 changed files with 16 additions and 329 deletions

View File

@@ -62,7 +62,7 @@ namespace OpenRA
{
var paths = mods.SelectMany(p => FindMapsIn("mods/" + p + "/maps/"));
return paths.Select(p => new MapStub(new Folder(p, int.MaxValue)))
return paths.Select(p => new MapStub(FileSystem.OpenPackage(p, int.MaxValue)))
.ToDictionary(m => m.Uid);
}