Skip to content
This repository was archived by the owner on Oct 9, 2024. It is now read-only.

Commit a376560

Browse files
committed
Change back to 0Harmony.dll, fix patches not being instantiated on Windows .NET 4.7.2 specifically
1 parent a37ee7b commit a376560

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Outflow.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
using System.Reflection;
55
using System.Collections.Concurrent;
66
using System.Reflection.Emit;
7+
using System.Runtime.CompilerServices;
78

89
namespace Outflow;
910

@@ -24,6 +25,7 @@ public override void OnEngineInit()
2425
Harmony harmony = new("net.Cyro.Outflow");
2526
Config = GetConfiguration();
2627
Config?.Save(true);
28+
RuntimeHelpers.RunClassConstructor(typeof(Session_Patches).TypeHandle);
2729
harmony.PatchAll();
2830
}
2931
#pragma warning restore CS1591 // Missing XML comment for publicly visible type or member

Outflow.csproj

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,9 @@
4040
<Reference Include="Elements.Assets">
4141
<HintPath>$(ResonitePath)Resonite_Data/Managed/Elements.Assets.dll</HintPath>
4242
</Reference>
43-
</ItemGroup>
44-
45-
46-
<ItemGroup>
47-
<PackageReference Include="Lib.Harmony" Version="2.2.2.0" />
43+
<Reference Include="0Harmony">
44+
<HintPath>$(ResonitePath)Libraries/0Harmony.dll</HintPath>
45+
</Reference>
4846
</ItemGroup>
4947

5048

@@ -54,7 +52,7 @@
5452

5553

5654
<Target Name="MoveBinary" AfterTargets="Publish">
57-
<Copy SourceFiles="$(PublishDir)$(TargetFileName)" DestinationFolder="./$(ReleaseBuild)" />
55+
<Copy SourceFiles="$(PublishDir)$(TargetFileName)" DestinationFolder="$(ReleaseBuild)" />
5856
</Target>
5957

6058

0 commit comments

Comments
 (0)