Skip to content

Commit

Permalink
Disable syringe patch
Browse files Browse the repository at this point in the history
  • Loading branch information
Kasuromi committed Dec 10, 2021
1 parent d8a76bf commit 3a149f1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion GTFO-API/API/Il2CppAPI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@ public static unsafe void InjectWithInterface<T>() where T : Il2CppObjectBase
interfaces.Add(UnityVersionHandler.Wrap(pClass));
}

ClassInjector.RegisterTypeInIl2Cpp(typeof(T), true, interfaces.ToArray());
ClassInjector.RegisterTypeInIl2Cpp<T>(new RegisterTypeOptions()
{
LogSuccess = true,
Interfaces = interfaces.ToArray()
});
}

/// <summary>
Expand Down
3 changes: 2 additions & 1 deletion GTFO-API/EntryPoint.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ public override void Load()

APILogger.Verbose("Core", "Plugin Load Complete");

new SyringeFirstPerson_Patch().Apply();
APILogger.Warn("GTFO-API", "Syringes are currently disabled in this version");
//new SyringeFirstPerson_Patch().Apply();
}

private Harmony m_Harmony;
Expand Down

0 comments on commit 3a149f1

Please sign in to comment.