diff --git a/MelonLoader/AssemblyAttributes.cs b/MelonLoader/AssemblyAttributes.cs new file mode 100644 index 0000000..c6a265c --- /dev/null +++ b/MelonLoader/AssemblyAttributes.cs @@ -0,0 +1,76 @@ +using System.Runtime.CompilerServices; + +[assembly: InternalsVisibleTo("BepInEx.MelonLoader.Loader")] + +#region Harmony Exports + +[assembly: TypeForwardedTo(typeof(HarmonyLib.DelegateTypeFactory))] +[assembly: TypeForwardedTo(typeof(HarmonyLib.GetterHandler<,>))] +[assembly: TypeForwardedTo(typeof(HarmonyLib.SetterHandler<,>))] +[assembly: TypeForwardedTo(typeof(HarmonyLib.InstantiationHandler<>))] +[assembly: TypeForwardedTo(typeof(HarmonyLib.FastAccess))] +[assembly: TypeForwardedTo(typeof(HarmonyLib.FastInvokeHandler))] +[assembly: TypeForwardedTo(typeof(HarmonyLib.MethodInvoker))] +[assembly: TypeForwardedTo(typeof(HarmonyLib.MethodType))] +[assembly: TypeForwardedTo(typeof(HarmonyLib.ArgumentType))] +[assembly: TypeForwardedTo(typeof(HarmonyLib.HarmonyPatchType))] +[assembly: TypeForwardedTo(typeof(HarmonyLib.HarmonyReversePatchType))] +[assembly: TypeForwardedTo(typeof(HarmonyLib.MethodDispatchType))] +[assembly: TypeForwardedTo(typeof(HarmonyLib.HarmonyAttribute))] +[assembly: TypeForwardedTo(typeof(HarmonyLib.HarmonyPatch))] +[assembly: TypeForwardedTo(typeof(HarmonyLib.HarmonyDelegate))] +[assembly: TypeForwardedTo(typeof(HarmonyLib.HarmonyReversePatch))] +[assembly: TypeForwardedTo(typeof(HarmonyLib.HarmonyPatchAll))] +[assembly: TypeForwardedTo(typeof(HarmonyLib.HarmonyPriority))] +[assembly: TypeForwardedTo(typeof(HarmonyLib.HarmonyBefore))] +[assembly: TypeForwardedTo(typeof(HarmonyLib.HarmonyAfter))] +[assembly: TypeForwardedTo(typeof(HarmonyLib.HarmonyDebug))] +[assembly: TypeForwardedTo(typeof(HarmonyLib.HarmonyWrapSafe))] +[assembly: TypeForwardedTo(typeof(HarmonyLib.HarmonyPrepare))] +[assembly: TypeForwardedTo(typeof(HarmonyLib.HarmonyCleanup))] +[assembly: TypeForwardedTo(typeof(HarmonyLib.HarmonyTargetMethod))] +[assembly: TypeForwardedTo(typeof(HarmonyLib.HarmonyTargetMethods))] +[assembly: TypeForwardedTo(typeof(HarmonyLib.HarmonyPrefix))] +[assembly: TypeForwardedTo(typeof(HarmonyLib.HarmonyPostfix))] +[assembly: TypeForwardedTo(typeof(HarmonyLib.HarmonyTranspiler))] +[assembly: TypeForwardedTo(typeof(HarmonyLib.HarmonyILManipulator))] +[assembly: TypeForwardedTo(typeof(HarmonyLib.HarmonyFinalizer))] +[assembly: TypeForwardedTo(typeof(HarmonyLib.HarmonyArgument))] +[assembly: TypeForwardedTo(typeof(HarmonyLib.CodeInstruction))] +[assembly: TypeForwardedTo(typeof(HarmonyLib.ExceptionBlockType))] +[assembly: TypeForwardedTo(typeof(HarmonyLib.ExceptionBlock))] +[assembly: TypeForwardedTo(typeof(HarmonyLib.InvalidHarmonyPatchArgumentException))] +[assembly: TypeForwardedTo(typeof(HarmonyLib.MemberNotFoundException))] +[assembly: TypeForwardedTo(typeof(HarmonyLib.Harmony))] +[assembly: TypeForwardedTo(typeof(HarmonyLib.HarmonyException))] +[assembly: TypeForwardedTo(typeof(HarmonyLib.HarmonyMethod))] +[assembly: TypeForwardedTo(typeof(HarmonyLib.HarmonyMethodExtensions))] +[assembly: TypeForwardedTo(typeof(HarmonyLib.InlineSignature))] +[assembly: TypeForwardedTo(typeof(HarmonyLib.PatchInfo))] +[assembly: TypeForwardedTo(typeof(HarmonyLib.Patch))] +[assembly: TypeForwardedTo(typeof(HarmonyLib.PatchClassProcessor))] +[assembly: TypeForwardedTo(typeof(HarmonyLib.Patches))] +[assembly: TypeForwardedTo(typeof(HarmonyLib.PatchProcessor))] +[assembly: TypeForwardedTo(typeof(HarmonyLib.Priority))] +[assembly: TypeForwardedTo(typeof(HarmonyLib.ReversePatcher))] +[assembly: TypeForwardedTo(typeof(HarmonyLib.Transpilers))] +[assembly: TypeForwardedTo(typeof(HarmonyLib.AccessTools))] +[assembly: TypeForwardedTo(typeof(HarmonyLib.CodeMatch))] +[assembly: TypeForwardedTo(typeof(HarmonyLib.CodeMatcher))] +[assembly: TypeForwardedTo(typeof(HarmonyLib.GeneralExtensions))] +[assembly: TypeForwardedTo(typeof(HarmonyLib.CodeInstructionExtensions))] +[assembly: TypeForwardedTo(typeof(HarmonyLib.CollectionExtensions))] +[assembly: TypeForwardedTo(typeof(HarmonyLib.MethodBaseExtensions))] +[assembly: TypeForwardedTo(typeof(HarmonyLib.FileLog))] +[assembly: TypeForwardedTo(typeof(HarmonyLib.SymbolExtensions))] +[assembly: TypeForwardedTo(typeof(HarmonyLib.Traverse<>))] +[assembly: TypeForwardedTo(typeof(HarmonyLib.Traverse))] +[assembly: TypeForwardedTo(typeof(HarmonyLib.Tools.HarmonyFileLog))] +[assembly: TypeForwardedTo(typeof(HarmonyLib.Tools.Logger))] +[assembly: TypeForwardedTo(typeof(HarmonyLib.Public.Patching.HarmonyManipulator))] +[assembly: TypeForwardedTo(typeof(HarmonyLib.Public.Patching.ManagedMethodPatcher))] +[assembly: TypeForwardedTo(typeof(HarmonyLib.Public.Patching.MethodPatcher))] +[assembly: TypeForwardedTo(typeof(HarmonyLib.Public.Patching.NativeDetourMethodPatcher))] +[assembly: TypeForwardedTo(typeof(HarmonyLib.Public.Patching.PatchManager))] + +#endregion \ No newline at end of file diff --git a/MelonLoader/Core.cs b/MelonLoader/Core.cs index 30a866d..e198b39 100644 --- a/MelonLoader/Core.cs +++ b/MelonLoader/Core.cs @@ -1,12 +1,6 @@ using System; -using System.Runtime.CompilerServices; using BepInEx.Configuration; -[assembly: InternalsVisibleTo("BepInEx.MelonLoader.Loader")] -[assembly: TypeForwardedTo(typeof(HarmonyLib.Harmony))] -[assembly: TypeForwardedTo(typeof(HarmonyLib.HarmonyMethod))] -[assembly: TypeForwardedTo(typeof(HarmonyLib.AccessTools))] - namespace MelonLoader { internal static class Core diff --git a/MelonLoader/MelonLoader.csproj b/MelonLoader/MelonLoader.csproj index 7686141..f012dd3 100644 --- a/MelonLoader/MelonLoader.csproj +++ b/MelonLoader/MelonLoader.csproj @@ -78,6 +78,7 @@ +