Chainloader.cs 510 B

1234567891011121314151617181920212223242526
  1. using ChaCustom;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. namespace BepInEx
  7. {
  8. public class Chainloader
  9. {
  10. static bool loaded = false;
  11. public static void Initialize()
  12. {
  13. if (loaded)
  14. return;
  15. UnityInjector.ConsoleUtil.ConsoleWindow.Attach();
  16. Console.WriteLine("Chainloader started");
  17. BepInComponent.Create();
  18. loaded = true;
  19. }
  20. }
  21. }