Skip to content

Commit bb9c1bc

Browse files
committed
Add SharpFont library to native lib resolver exclusions - finally actually push the fix for #170 oops
1 parent 65bf2e0 commit bb9c1bc

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<TargetFramework>net10.0</TargetFramework>
55
<Version>0.28.1-beta</Version>
66
<RootNamespace>MonkeyLoader.Resonite</RootNamespace>
7-
<LangVersion>13.0</LangVersion>
7+
<LangVersion>14.0</LangVersion>
88
<Nullable>enable</Nullable>
99
<Deterministic>true</Deterministic>
1010
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>

MonkeyLoaderWrapper/Program.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,9 @@ private static async Task Main(string[] args)
118118
// TODO: Should not be necessary anymore with the hookfxr changes. Either way, should be done by the load context
119119
foreach (var assembly in AppDomain.CurrentDomain.GetAssemblies())
120120
{
121-
if (assembly.GetName().Name == "SoundFlow") continue;
121+
if (assembly.GetName().Name is "SoundFlow" or "SharpFont")
122+
continue;
123+
122124
NativeLibrary.SetDllImportResolver(assembly, ResolveNativeLibrary);
123125
}
124126

0 commit comments

Comments
 (0)