From 810b4cf6a00a4c5768e62cb8ce1b38c42cf5f560 Mon Sep 17 00:00:00 2001 From: DashingCat <65317616+DashingCat@users.noreply.github.com> Date: Thu, 31 Oct 2024 12:22:36 +0100 Subject: [PATCH] Log when mod DLL cannot be loaded (issue #522) --- Celeste.Mod.mm/Mod/Everest/Everest.Loader.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Celeste.Mod.mm/Mod/Everest/Everest.Loader.cs b/Celeste.Mod.mm/Mod/Everest/Everest.Loader.cs index cb84b48c2..72a1f7eff 100644 --- a/Celeste.Mod.mm/Mod/Everest/Everest.Loader.cs +++ b/Celeste.Mod.mm/Mod/Everest/Everest.Loader.cs @@ -503,6 +503,7 @@ public static bool LoadMod(EverestModuleMetadata meta) { if (!string.IsNullOrEmpty(meta.DLL)) { if (meta.AssemblyContext.LoadAssemblyFromModPath(meta.DLL) is not Assembly asm) { // Don't register a module - this will cause dependencies to not load + Logger.Error("loader", $"Could not load DLL {meta.DLL} for mod {meta.Name}"); ModsWithAssemblyLoadFailures.Add(meta); return false; }