Skip to content

Commit

Permalink
Merge pull request #342 from BUTR/dev
Browse files Browse the repository at this point in the history
v2.8.5
  • Loading branch information
Aragas authored Jul 5, 2023
2 parents d22eefd + 4f8aed7 commit e9bb052
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build/common.props
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<!--Development Variables-->
<PropertyGroup>
<!--Module Version-->
<Version>2.8.4</Version>
<Version>2.8.5</Version>
<!--Harmony Version-->
<HarmonyVersion>2.2.2</HarmonyVersion>
<HarmonyExtensionsVersion>3.2.0.77</HarmonyExtensionsVersion>
Expand Down
4 changes: 4 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
---------------------------------------------------------------------------------------------------
Version: 2.8.5
Game Versions: v1.0.0,v1.0.1,v1.0.2,v1.0.3,v1.1.0,v1.1.1,v1.1.2,v1.1.3,v1.1.4,v1.1.5,v1.2.0
* Fixed BLSE detection
---------------------------------------------------------------------------------------------------
Version: 2.8.4
Game Versions: v1.0.0,v1.0.1,v1.0.2,v1.0.3,v1.1.0,v1.1.1,v1.1.2,v1.1.3,v1.1.4,v1.1.5,v1.2.0
* ButterLib is not able to disable v1.2.0 Watchdog, BLSE is required
Expand Down
6 changes: 3 additions & 3 deletions src/Bannerlord.ButterLib/ExceptionHandler/HtmlBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ namespace Bannerlord.ButterLib.ExceptionHandler
{
internal static class HtmlBuilder
{
private static readonly int Version = 11;
private static readonly int Version = 12;
private static readonly string NL = Environment.NewLine;

public static readonly string MiniDumpTag = "<!-- MINI DUMP -->";
Expand Down Expand Up @@ -325,12 +325,12 @@ function screenshot(element) {{
}
private static string GetBLSEVersion()
{
var blseMetadata = AccessTools2.TypeByName("Bannerlord.BLSE.BLSEInterceptorAttribute")?.Assembly.GetCustomAttributes<AssemblyMetadataAttribute>();
var blseMetadata = AccessTools2.AllAssemblies().FirstOrDefault(x => x.GetName().Name == "Bannerlord.BLSE")?.GetCustomAttributes<AssemblyMetadataAttribute>();
return blseMetadata?.FirstOrDefault(x => x.Key == "BLSEVersion")?.Value ?? string.Empty;
}
private static string GetLauncherExVersion()
{
var launcherExMetadata = AccessTools2.TypeByName("Bannerlord.LauncherEx.Mixins.LauncherVMMixin")?.Assembly.GetCustomAttributes<AssemblyMetadataAttribute>();
var launcherExMetadata = AccessTools2.AllAssemblies().FirstOrDefault(x => x.GetName().Name == "Bannerlord.LauncherEx")?.GetCustomAttributes<AssemblyMetadataAttribute>();
return launcherExMetadata?.FirstOrDefault(x => x.Key == "LauncherExVersion")?.Value ?? string.Empty;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ public KeyValuePair<string, object> this[int index]
{
if (index < 0 || index >= Count)
throw new IndexOutOfRangeException(nameof(index));
return index == Count - 1 ? new KeyValuePair<string, object>("{OriginalFormat}", _originalMessage) : _formatter.GetValue(_values, index);
return index == Count - 1 ? new KeyValuePair<string, object>("{OriginalFormat}", _originalMessage) : _formatter!.GetValue(_values!, index);
}
}

Expand Down

0 comments on commit e9bb052

Please sign in to comment.