Fix mod assembly loading on Windows.

This commit is contained in:
Paul Chote
2016-02-07 18:14:06 +00:00
parent e0d74455f5
commit 6c6826c3f3
6 changed files with 55 additions and 39 deletions

View File

@@ -43,11 +43,7 @@ namespace OpenRA
Manifest = new Manifest(mod);
ModFiles.LoadFromManifest(Manifest);
// Allow mods to load types from the core Game assembly, and any additional assemblies they specify.
var assemblies = new[] { typeof(Game).Assembly }
.Concat(Manifest.Assemblies.Select(path => Assembly.Load(ModFiles.Open(path).ReadAllBytes())))
.ToList();
ObjectCreator = new ObjectCreator(assemblies);
ObjectCreator = new ObjectCreator(Manifest, ModFiles);
Manifest.LoadCustomData(ObjectCreator);
if (useLoadScreen)