Skip to content

Commit

Permalink
Abstracted the library more
Browse files Browse the repository at this point in the history
* Harmony is exposed from an interface
* The CrashReportCreator logic moved to the main project
* Added LoaderPlugin support (BepInEx, BLSE)
* Decompiler is now ILMerged into the main library
  • Loading branch information
Aragas committed Mar 24, 2024
1 parent 8049dd3 commit bc47fae
Show file tree
Hide file tree
Showing 100 changed files with 3,707 additions and 1,827 deletions.
96 changes: 63 additions & 33 deletions src/BUTR.CrashReport.Bannerlord.Parser/CrashReportParser.cs

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ namespace BUTR.CrashReport.Bannerlord.Parser.Extensions;

internal static class StringExtensions
{
public static string[] Split(this string str, string separator) => str.Split(new[] { separator }, StringSplitOptions.None);
public static string[] Split(this string str, string separator) => str.Split([separator], StringSplitOptions.None);

public static string[] Split(this string str, string separator, StringSplitOptions stringSplitOptions) => str.Split(new[] { separator }, stringSplitOptions);
public static string[] Split(this string str, string separator, StringSplitOptions stringSplitOptions) => str.Split([separator], stringSplitOptions);
}
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,14 @@
<ItemGroup>
<PackageFile Include="**/*.cs" PackagePath="content\cs\$(TargetFramework)\$(ProjectName)\%(RelativeDir)%(Filename).cs" Exclude="$(BaseIntermediateOutputPath)/**/*.cs" />
<PackageFile Include="**/*.cs" PackagePath="contentFiles\cs\$(TargetFramework)\$(ProjectName)\%(RelativeDir)%(Filename).cs" Exclude="$(BaseIntermediateOutputPath)/**/*.cs" />
<PackageFile Include="../BUTR.CrashReport.Bannerlord.Source.props" PackagePath="build/BUTR.CrashReport.Bannerlord.Source.props" Visible="false" />
<PackageFile Include="BUTR.CrashReport.Bannerlord.Source.props" PackagePath="build/BUTR.CrashReport.Bannerlord.Source.props" />
<PackageFile Include="../../assets/Icon128x128.png" PackagePath="icon.png" Visible="false" />
<PackageFile Include="BUTR.CrashReport.Models" Version="$(Version)" PackFolder="Dependency" Visible="false" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="NuGetizer" Version="1.2.1" Pack="false" />
</ItemGroup>
<!--NuGetizer-->

<ItemGroup>
<PackageReference Include="Harmony.Extensions" Version="3.2.0.77" Pack="true" PrivateAssets="all" IncludeAssets="runtime; build; native; contentfiles; analyzers; buildtransitive" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
// SOFTWARE.
#endregion


#if !BUTRCRASHREPORT_DISABLE || BUTRCRASHREPORT_ENABLE_ARCHIVE_RENDERER
#nullable enable
#if !BUTRCRASHREPORT_ENABLEWARNINGS
Expand Down
437 changes: 0 additions & 437 deletions src/BUTR.CrashReport.Bannerlord.Source/CrashReportCreator.cs

This file was deleted.

343 changes: 343 additions & 0 deletions src/BUTR.CrashReport.Bannerlord.Source/CrashReportCreatorHelper.cs

Large diffs are not rendered by default.

Loading

0 comments on commit bc47fae

Please sign in to comment.