Skip to content

Commit de6c965

Browse files
authored
Match the IL2CPP game assembly module name case-insensitively (#268)
1 parent 61f44a5 commit de6c965

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Il2CppInterop.Runtime/Injection/InjectorHelpers.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ internal static unsafe class InjectorHelpers
2929
internal static INativeImageStruct InjectedImage;
3030
internal static ProcessModule Il2CppModule = Process.GetCurrentProcess()
3131
.Modules.OfType<ProcessModule>()
32-
.Single((x) => x.ModuleName is "GameAssembly.dll" or "GameAssembly.so" or "UserAssembly.dll");
32+
.Single((x) => x.ModuleName is "GameAssembly.dll" or "GameAssembly.dylib" or "GameAssembly.so" or "UserAssembly.dll" || string.Equals(x.ModuleName, "GameAssembly.dll", StringComparison.OrdinalIgnoreCase));
3333

3434
internal static IntPtr Il2CppHandle = NativeLibrary.Load("GameAssembly", typeof(InjectorHelpers).Assembly, null);
3535

0 commit comments

Comments
 (0)