You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
616 B

6 years ago
  1. using IllusionInjector.Logging;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using UnityEngine;
  7. namespace IPA.Injector
  8. {
  9. class Bootstrapper : MonoBehaviour
  10. {
  11. public event Action Destroyed = delegate {};
  12. void Awake()
  13. {
  14. //if (Environment.CommandLine.Contains("--verbose"))
  15. //{
  16. Windows.GuiConsole.CreateConsole();
  17. //}
  18. }
  19. void Start()
  20. {
  21. Destroy(gameObject);
  22. }
  23. void OnDestroy()
  24. {
  25. Destroyed();
  26. }
  27. }
  28. }