Working Hook.Patch and old patch methods

This commit is contained in:
Evil Factory
2026-01-29 22:20:16 -03:00
committed by Maplewheels
parent 6b8a0a7dca
commit 4f02cb4967
7 changed files with 84 additions and 182 deletions
@@ -127,6 +127,12 @@ public class PluginManagementService : IAssemblyManagementService
public Type GetType(string typeName, bool isByRefType = false, bool includeInterfaces = false,
bool includeDefaultContext = true)
{
if (typeName.StartsWith("out ") || typeName.StartsWith("ref "))
{
typeName = typeName.Remove(0, 4);
isByRefType = true;
}
if (includeDefaultContext)
{
var type = Type.GetType(typeName, false, false);