diff --git a/src/BUTR.CrashReport.Bannerlord.Source/CrashReportCreatorHelper.cs b/src/BUTR.CrashReport.Bannerlord.Source/CrashReportCreatorHelper.cs index 66e9a7a..324687d 100644 --- a/src/BUTR.CrashReport.Bannerlord.Source/CrashReportCreatorHelper.cs +++ b/src/BUTR.CrashReport.Bannerlord.Source/CrashReportCreatorHelper.cs @@ -190,15 +190,14 @@ static bool IsTWCore(Assembly assembly) if (!string.Equals(binFolder, "bin", StringComparison.OrdinalIgnoreCase)) return false; var moduleFolder = Path.GetDirectoryName(binFolder); - var modulesFolder = Path.GetDirectoryName(binFolder); + var modulesFolder = Path.GetDirectoryName(moduleFolder); if (string.Equals(binFolder, "Modules", StringComparison.OrdinalIgnoreCase)) return false; return true; } - var isTWCore = IsTWCore(assembly); - if (isTWCore) type |= AssemblyModelType.GameCore; + if (IsTWCore(assembly)) type |= AssemblyModelType.GameCore; var module = !assembly.IsDynamic ? ModuleInfoHelper.GetModuleByType(AccessTools2.GetTypesFromAssembly(assembly).FirstOrDefault()) : null; if (module is not null && !module.IsOfficial) type |= AssemblyModelType.Module; diff --git a/src/BUTR.CrashReport.Renderer.Html/CrashReportHtml.cs b/src/BUTR.CrashReport.Renderer.Html/CrashReportHtml.cs index 557b8aa..7337cc6 100644 --- a/src/BUTR.CrashReport.Renderer.Html/CrashReportHtml.cs +++ b/src/BUTR.CrashReport.Renderer.Html/CrashReportHtml.cs @@ -514,7 +514,7 @@ void AppendAssembly(AssemblyModel assembly) AssemblyModelType.Module => "module_assembly", AssemblyModelType.Loader => "loader_assembly", AssemblyModelType.LoaderPlugin => "loader_plugin_assembly", - _ => string.Empty, + _ => "unclas_assembly", })); var isDynamic = assembly.Type.HasFlag(AssemblyModelType.Dynamic); var hasPath = assembly.AnonymizedPath != "EMPTY" && !string.IsNullOrWhiteSpace(assembly.AnonymizedPath);