From 17caacd048dcfd9dc179d21c027858332859bd9d Mon Sep 17 00:00:00 2001 From: Vitalii Mikhailov Date: Fri, 4 Oct 2024 11:08:53 +0300 Subject: [PATCH] Fixed IsTWCore --- .../CrashReportCreatorHelper.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BUTR.CrashReport.Bannerlord.Source/CrashReportCreatorHelper.cs b/src/BUTR.CrashReport.Bannerlord.Source/CrashReportCreatorHelper.cs index 4921aeb..66e9a7a 100644 --- a/src/BUTR.CrashReport.Bannerlord.Source/CrashReportCreatorHelper.cs +++ b/src/BUTR.CrashReport.Bannerlord.Source/CrashReportCreatorHelper.cs @@ -184,7 +184,7 @@ public virtual AssemblyModelType GetAssemblyType(AssemblyModelType type, CrashRe { static bool IsTWCore(Assembly assembly) { - if (assembly.IsDynamic) + if (assembly.IsDynamic || string.IsNullOrEmpty(assembly.Location)) return false; var binFolder = Path.GetDirectoryName(assembly.Location); if (!string.Equals(binFolder, "bin", StringComparison.OrdinalIgnoreCase))