Skip to content

Commit

Permalink
uses Harmony 2.3.3, adds deduplication of stacktraces
Browse files Browse the repository at this point in the history
  • Loading branch information
pardeike committed Mar 29, 2024
1 parent 29c86fd commit fbd0cb7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Binary file modified Current/Assemblies/0Harmony.dll
Binary file not shown.
Binary file modified Current/Assemblies/HarmonyMod.dll
Binary file not shown.
4 changes: 2 additions & 2 deletions Source/ExceptionAnalyser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ public static string ExtractHarmonyEnhancedStackTrace(StackTrace trace)
var stacktrace = sb.ToString();
var hash = stacktrace.GetHashCode();
if (seenStacktraces.Contains(hash))
return $"Duplicate stacktrace, see [Ref {hash:X}] for original";
return $"[Ref {hash:X}] Duplicate stacktrace, see ref for original";
seenStacktraces.Add(hash);
return $"{stacktrace}\n[Ref {hash:X}]";
return $"[Ref {hash:X}]\n{stacktrace}";
}

static bool AddHarmonyFrames(this StringBuilder sb, StackTrace trace)
Expand Down
4 changes: 2 additions & 2 deletions Source/HarmonyRimWorld.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Krafs.Rimworld.Ref" Version="1.5.4042-beta" />
<PackageReference Include="Lib.Harmony" Version="2.3.2.0" />
<PackageReference Include="Krafs.Rimworld.Ref" Version="1.5.4048-beta" />
<PackageReference Include="Lib.Harmony" Version="2.3.3.0" />
<PackageReference Include="Microsoft.NETCore.Platforms" Version="7.0.4" />
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies.net472" Version="1.0.3">
<PrivateAssets>all</PrivateAssets>
Expand Down

0 comments on commit fbd0cb7

Please sign in to comment.