Skip mod directories without a mod manifest file

This commit is contained in:
Oliver Brakmann
2015-11-12 22:13:38 +01:00
parent 5e576ddca4
commit f2bad4331d

View File

@@ -189,6 +189,9 @@ namespace OpenRA
var ret = new Dictionary<string, Manifest>(); var ret = new Dictionary<string, Manifest>();
foreach (var mod in mods) foreach (var mod in mods)
{ {
if (!File.Exists(Platform.ResolvePath(".", "mods", mod, "mod.yaml")))
continue;
try try
{ {
var manifest = new Manifest(mod); var manifest = new Manifest(mod);