From 1e4090a68613ad0f0f9f74013254b2d53d07d7b2 Mon Sep 17 00:00:00 2001 From: Anairkoen Schno Date: Thu, 27 Feb 2020 20:12:45 -0600 Subject: [PATCH] Moved injection to happen earlier, and bootstrapper to behave well --- IPA.Injector/Bootstrapper.cs | 6 +++--- IPA.Injector/Injector.cs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/IPA.Injector/Bootstrapper.cs b/IPA.Injector/Bootstrapper.cs index caa937c9..a14a2c6f 100644 --- a/IPA.Injector/Bootstrapper.cs +++ b/IPA.Injector/Bootstrapper.cs @@ -1,7 +1,7 @@ using System; +using System.Diagnostics; using UnityEngine; -// ReSharper disable ClassNeverInstantiated.Global -// ReSharper disable UnusedMember.Global +using Logger = IPA.Logging.Logger; namespace IPA.Injector { @@ -9,7 +9,7 @@ namespace IPA.Injector { public event Action Destroyed = delegate {}; - public void Awake() + public void Awake() { } diff --git a/IPA.Injector/Injector.cs b/IPA.Injector/Injector.cs index 55fa3966..0220e6cb 100644 --- a/IPA.Injector/Injector.cs +++ b/IPA.Injector/Injector.cs @@ -172,7 +172,7 @@ namespace IPA.Injector } } - var application = unityModDef.GetType("UnityEngine", "Application"); + var application = unityModDef.GetType("UnityEngine", "Camera"); if (application == null) {