mirror of
https://github.com/BepInEx/BepInEx.git
synced 2026-10-20 01:46:13 +00:00
19 lines
425 B
C#
19 lines
425 B
C#
using System.Diagnostics;
|
|
using System.Reflection;
|
|
|
|
namespace BepInEx.Bootstrap
|
|
{
|
|
public static class Linker
|
|
{
|
|
public static void StartBepInEx()
|
|
{
|
|
var property = typeof(Paths)
|
|
.GetProperty("ExecutablePath", BindingFlags.Static | BindingFlags.Public)
|
|
?.GetSetMethod(true);
|
|
|
|
property?.Invoke(null, new object[] {Process.GetCurrentProcess().MainModule.FileName});
|
|
|
|
Chainloader.Initialize();
|
|
}
|
|
}
|
|
} |