Skip to content

Commit

Permalink
Fixed typo
Browse files Browse the repository at this point in the history
Fixed GameCore resolution
Html renderer was ignoring unclassified
  • Loading branch information
Aragas committed Oct 4, 2024
1 parent 17caacd commit d245b77
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/BUTR.CrashReport.Renderer.Html/CrashReportHtml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d245b77

Please sign in to comment.