Skip to content

Commit

Permalink
Log when mod DLL cannot be loaded (issue EverestAPI#522)
Browse files Browse the repository at this point in the history
  • Loading branch information
DashingCat committed Oct 31, 2024
1 parent 894440e commit 810b4cf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Celeste.Mod.mm/Mod/Everest/Everest.Loader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 810b4cf

Please sign in to comment.