From f2bad4331d3dd44432fea6dc1ab5742f82bce2c2 Mon Sep 17 00:00:00 2001 From: Oliver Brakmann Date: Thu, 12 Nov 2015 22:13:38 +0100 Subject: [PATCH] Skip mod directories without a mod manifest file --- OpenRA.Game/Manifest.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/OpenRA.Game/Manifest.cs b/OpenRA.Game/Manifest.cs index d35432d9a8..9b16e47264 100644 --- a/OpenRA.Game/Manifest.cs +++ b/OpenRA.Game/Manifest.cs @@ -189,6 +189,9 @@ namespace OpenRA var ret = new Dictionary(); foreach (var mod in mods) { + if (!File.Exists(Platform.ResolvePath(".", "mods", mod, "mod.yaml"))) + continue; + try { var manifest = new Manifest(mod);