A fork of Eusth's IPA
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.

29 line
614B

  1. using System;
  2. using UnityEngine;
  3. namespace IllusionInjector
  4. {
  5. internal class Bootstrapper : MonoBehaviour
  6. {
  7. public event Action Destroyed = delegate { };
  8. private void Awake()
  9. {
  10. if (Environment.CommandLine.Contains("--verbose") && (!Screen.fullScreen || Environment.CommandLine.Contains("--ipa-console")))
  11. {
  12. Windows.GuiConsole.CreateConsole();
  13. }
  14. }
  15. private void Start()
  16. {
  17. Destroy(gameObject);
  18. }
  19. private void OnDestroy()
  20. {
  21. Destroyed();
  22. }
  23. }
  24. }