Browse Source

Moved injection to happen earlier, and bootstrapper to behave well

pull/44/head
Anairkoen Schno 4 years ago
parent
commit
1e4090a686
2 changed files with 4 additions and 4 deletions
  1. +3
    -3
      IPA.Injector/Bootstrapper.cs
  2. +1
    -1
      IPA.Injector/Injector.cs

+ 3
- 3
IPA.Injector/Bootstrapper.cs View File

@ -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()
{
}


+ 1
- 1
IPA.Injector/Injector.cs View File

@ -172,7 +172,7 @@ namespace IPA.Injector
}
}
var application = unityModDef.GetType("UnityEngine", "Application");
var application = unityModDef.GetType("UnityEngine", "Camera");
if (application == null)
{


Loading…
Cancel
Save