Linker.cs 318 B

12345678910111213141516
  1. using System.Diagnostics;
  2. using BepInEx.Unity.Bootstrap;
  3. namespace BepInEx.Bootstrap
  4. {
  5. public static class Linker
  6. {
  7. public static void StartBepInEx()
  8. {
  9. var chainloader = new UnityChainloader();
  10. chainloader.Initialize(Process.GetCurrentProcess().MainModule.FileName);
  11. chainloader.Execute();
  12. }
  13. }
  14. }