mirror of
https://github.com/BepInEx/BepInEx.git
synced 2026-10-19 15:51:45 +00:00
Target latest Il2CppInterop code
This commit is contained in:
1 parent
01635d9f02
commit
abb10739db
6 files changed
+17
-7
No files matched your search
@@ -1,7 +1,6 @@
|
||||
using BepInEx.Configuration;
|
||||
using BepInEx.Logging;
|
||||
using Il2CppInterop.Runtime;
|
||||
using Logger = BepInEx.Logging.Logger;
|
||||
using Il2CppInterop.Runtime.InteropTypes;
|
||||
|
||||
namespace BepInEx.IL2CPP;
|
||||
|
||||
|
||||
@@ -26,9 +26,9 @@
|
||||
<ItemGroup>
|
||||
<PackageReference Include="HarmonyX" Version="2.10.0"/>
|
||||
<PackageReference Include="Iced" Version="1.17.0"/>
|
||||
<PackageReference Include="Il2CppInterop.Generator" Version="1.0.0-pre.3"/>
|
||||
<PackageReference Include="Il2CppInterop.ReferenceLibs" Version="1.0.0-pre.1" IncludeAssets="compile" PrivateAssets="all"/>
|
||||
<PackageReference Include="Il2CppInterop.Runtime" Version="1.0.0-pre.3"/>
|
||||
<PackageReference Include="Il2CppInterop.Generator" Version="1.0.0-pre.6"/>
|
||||
<PackageReference Include="Il2CppInterop.ReferenceLibs" Version="1.0.0-pre.2" IncludeAssets="compile" PrivateAssets="all"/>
|
||||
<PackageReference Include="Il2CppInterop.Runtime" Version="1.0.0-pre.6"/>
|
||||
<PackageReference Include="MonoMod.RuntimeDetour" Version="22.5.1.1"/>
|
||||
<PackageReference Include="Samboy063.Cpp2IL.Core" Version="2022.0.5"/>
|
||||
</ItemGroup>
|
||||
|
||||
@@ -7,7 +7,9 @@ using System.Runtime.InteropServices;
|
||||
using BepInEx.Logging;
|
||||
using HarmonyLib;
|
||||
using HarmonyLib.Public.Patching;
|
||||
using Il2CppInterop.Common;
|
||||
using Il2CppInterop.Runtime;
|
||||
using Il2CppInterop.Runtime.InteropTypes;
|
||||
using Il2CppInterop.Runtime.Runtime;
|
||||
using Il2CppInterop.Runtime.Runtime.VersionSpecific.MethodInfo;
|
||||
using MonoMod.Cil;
|
||||
|
||||
@@ -13,8 +13,8 @@ using BepInEx.Logging;
|
||||
using BepInEx.Preloader.Core;
|
||||
using BepInEx.Preloader.Core.Logging;
|
||||
using HarmonyLib.Public.Patching;
|
||||
using Il2CppInterop.Runtime;
|
||||
using Il2CppInterop.Runtime.Injection;
|
||||
using Il2CppInterop.Runtime.InteropTypes;
|
||||
using MonoMod.Utils;
|
||||
using UnityEngine;
|
||||
using Logger = BepInEx.Logging.Logger;
|
||||
|
||||
@@ -11,8 +11,9 @@ using BepInEx.Configuration;
|
||||
using BepInEx.Logging;
|
||||
using Cpp2IL.Core;
|
||||
using HarmonyLib;
|
||||
using Il2CppInterop.Common;
|
||||
using Il2CppInterop.Generator;
|
||||
using Il2CppInterop.Runtime;
|
||||
using Il2CppInterop.Runtime.XrefScans;
|
||||
using LibCpp2IL;
|
||||
using Mono.Cecil;
|
||||
|
||||
@@ -141,6 +142,13 @@ internal static class Il2CppInteropManager
|
||||
|
||||
AppDomain.CurrentDomain.AssemblyResolve += ResolveInteropAssemblies;
|
||||
|
||||
GenerateInteropAssemblies();
|
||||
|
||||
XrefRuntimeScanner.Initialize();
|
||||
}
|
||||
|
||||
private static void GenerateInteropAssemblies()
|
||||
{
|
||||
if (!CheckIfGenerationRequired())
|
||||
return;
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
using System;
|
||||
using Il2CppInterop.Runtime;
|
||||
using Il2CppInterop.Runtime.Injection;
|
||||
using Il2CppInterop.Runtime.InteropTypes;
|
||||
using UnityEngine;
|
||||
|
||||
namespace BepInEx.IL2CPP.Utils;
|
||||
|
||||
Reference in new issue
Block a user