Skip to content

Commit

Permalink
Add public Preloader.GetInteropAssemblyPath
Browse files Browse the repository at this point in the history
  • Loading branch information
ManlyMarco committed Feb 8, 2024
1 parent 910844a commit 6aef5a0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Runtimes/Unity/BepInEx.Unity.IL2CPP/Preloader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@ public static class Preloader
// TODO: This is not needed, maybe remove? (Instance is saved in IL2CPPChainloader itself)
private static IL2CPPChainloader Chainloader { get; set; }

/// <summary>
/// Path to a folder containing all of the IL2CPP interop assemblies for the current session.
/// Interop assemblies are used to provide a bridge between managed plugins and C++ compiled game code.
/// They are loaded automatically when referenced by managed code but not when passing objects between managed and unmanaged code.
/// </summary>
public static string GetInteropAssemblyPath() => Il2CppInteropManager.IL2CPPInteropAssemblyPath;

public static void Run()
{
try
Expand Down

0 comments on commit 6aef5a0

Please sign in to comment.