Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Aragas committed Apr 5, 2024
1 parent 3ba5081 commit 98a538d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/BUTR.CrashReport.Renderer.ImGui/CrashReportWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,18 @@ public static void ShowAndWait(Exception exception, IList<LogSource> logSources,
IPathAnonymizer pathAnonymizer,
ICrashReportRendererUtilities crashReportRendererUtilities)
{
if (PathResolver.Default is DefaultPathResolver pr)
pr.Resolvers = [path => crashReportRendererUtilities.GetNativeLibrariesFolderPath().Select(x => Path.Combine(x, path))];

var crashReport = CrashReportInfo.Create(exception, additionalMetadata, stacktraceFilter, assemblyUtilities, moduleProvider, loaderPluginProvider, harmonyProvider);

var crashReportModel = CrashReportInfo.ToModel(crashReport, crashReportMetadataProvider, modelConverter, moduleProvider, loaderPluginProvider, assemblyUtilities, pathAnonymizer);

ShowAndWait(crashReportModel, logSources, crashReportRendererUtilities);
}

private static void ShowAndWait(CrashReportModel crashReportModel, IList<LogSource> logSources, ICrashReportRendererUtilities crashReportRendererUtilities)
public static void ShowAndWait(CrashReportModel crashReportModel, IList<LogSource> logSources, ICrashReportRendererUtilities crashReportRendererUtilities)
{
if (PathResolver.Default is DefaultPathResolver pr)
pr.Resolvers = [path => crashReportRendererUtilities.GetNativeLibrariesFolderPath().Select(x => Path.Combine(x, path))];

var window = Window.Create(WindowOptions.Default with
{
Title = $"{crashReportModel.Metadata.GameName} Crash Report",
Expand Down

0 comments on commit 98a538d

Please sign in to comment.