fix old wrong comment
This commit is contained in:
@@ -79,12 +79,10 @@ namespace OpenRA
|
|||||||
.Select(c => Pair.New(typeof(Game).Assembly, c))
|
.Select(c => Pair.New(typeof(Game).Assembly, c))
|
||||||
.ToList();
|
.ToList();
|
||||||
|
|
||||||
// Mod assemblies assumed to contain a single namespace
|
// Namespaces from each mod assembly
|
||||||
foreach (var a in m.Assemblies)
|
foreach (var a in m.Assemblies)
|
||||||
{
|
{
|
||||||
var fullpath = Path.GetFullPath(a);
|
var asm = Assembly.LoadFile(Path.GetFullPath(a));
|
||||||
|
|
||||||
var asm = Assembly.LoadFile(fullpath);
|
|
||||||
asms.AddRange(asm.GetNamespaces().Select(ns => Pair.New(asm, ns)));
|
asms.AddRange(asm.GetNamespaces().Select(ns => Pair.New(asm, ns)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user