From 07eb6ac36f38b9d9d24afb26898371b33c75e1d7 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Sun, 20 Jun 2021 17:35:56 +0200 Subject: [PATCH] fixed RawContentManager crashing with dynamic assemblies present --- MLEM.Data/Content/RawContentManager.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/MLEM.Data/Content/RawContentManager.cs b/MLEM.Data/Content/RawContentManager.cs index c1cbdeb..230b2ea 100644 --- a/MLEM.Data/Content/RawContentManager.cs +++ b/MLEM.Data/Content/RawContentManager.cs @@ -13,6 +13,7 @@ namespace MLEM.Data.Content { public class RawContentManager : ContentManager, IGameComponent { private static readonly RawContentReader[] Readers = AppDomain.CurrentDomain.GetAssemblies() + .Where(a => !a.IsDynamic) .SelectMany(a => a.GetExportedTypes()) .Where(t => t.IsSubclassOf(typeof(RawContentReader)) && !t.IsAbstract) .Select(t => t.GetConstructor(Type.EmptyTypes).Invoke(null))