6 Commits
Author SHA1 Message Date
ghorsington e64304a07a Bump version 2020-11-01 20:36:31 +02:00
ghorsington 5c02ca7ff0 Replace lib with NuGet packages 2020-11-01 20:17:15 +02:00
ghorsington 7261a47a3f Move to new csproj format 2020-11-01 20:16:59 +02:00
ghorsington 7a3f8f394e Add BepInEx nuget feed 2020-11-01 20:16:39 +02:00
ghorsington 03c032f2ae Add better check for plugin type check 2020-11-01 19:00:27 +02:00
ghorsington d8ce6f1774 Remove TargetFrameworkAttribute in plugins 2020-01-27 20:40:32 +02:00
24 changed files with 42 additions and 5602 deletions

No files matched your search

@@ -1,77 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{B022796F-A80E-41FE-AECF-D5BF2FDB0196}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>BepInEx.IPAHarmonyShimmer</RootNamespace>
<AssemblyName>BepInEx.IPAHarmonyShimmer</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<Deterministic>true</Deterministic>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>false</DebugSymbols>
<DebugType>none</DebugType>
<Optimize>false</Optimize>
<OutputPath>..\bin\patchers\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<TargetFramework>net35</TargetFramework>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<DebugType>none</DebugType>
<Optimize>true</Optimize>
<OutputPath>..\bin\patchers\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
</PropertyGroup>
<ItemGroup>
<Reference Include="0Harmony">
<HintPath>..\lib\0Harmony.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="BepInEx">
<HintPath>..\lib\BepInEx.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="BepInEx.Harmony">
<HintPath>..\lib\BepInEx.Harmony.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="Mono.Cecil">
<HintPath>..\lib\Mono.Cecil.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="System" />
</ItemGroup>
<ItemGroup>
<Compile Include="HarmonyShimmer.cs" />
<Compile Include="Harmony\AccessCache.cs" />
<Compile Include="Harmony\AccessTools.cs" />
<Compile Include="Harmony\Attributes.cs" />
<Compile Include="Harmony\Extensions.cs" />
<Compile Include="Harmony\FileLog.cs" />
<Compile Include="Harmony\HarmonyInstance.cs" />
<Compile Include="Harmony\HarmonyMethod.cs" />
<Compile Include="Harmony\HarmonySharedState.cs" />
<Compile Include="Harmony\MethodInvoker.cs" />
<Compile Include="Harmony\Patch.cs" />
<Compile Include="Harmony\PatchFunctions.cs" />
<Compile Include="Harmony\PatchProcessor.cs" />
<Compile Include="Harmony\PatchTools.cs" />
<Compile Include="Harmony\Priority.cs" />
<Compile Include="Harmony\ShimUtil.cs" />
<Compile Include="Harmony\SymbolExtensions.cs" />
<Compile Include="Harmony\Traverse.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<PackageReference Include="BepInEx.Core" Version="5.3.0.4" IncludeAssets="compile" />
</ItemGroup>
<Import Project="..\Shared\Shared.projitems" Label="Shared" />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
+9 -3
View File
@@ -1,5 +1,4 @@
using BepInEx.Configuration;
using BepInEx.Harmony;
using BepInEx.IPALoader;
using BepInEx.Logging;
using HarmonyLib;
@@ -9,7 +8,6 @@ using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Reflection.Emit;
namespace BepInEx.IPAHarmonyShimmer
{
@@ -59,7 +57,7 @@ namespace BepInEx.IPAHarmonyShimmer
{
IPAPluginsPath = CfgFile.Bind(Metadata.ConfigSection, Metadata.ConfigKey, Metadata.ConfigDefaultValue, Metadata.ConfigDescription);
HarmonyWrapper.PatchAll(typeof(HarmonyShimmer));
HarmonyLib.Harmony.CreateAndPatchAll(typeof(HarmonyShimmer));
resolver = new DefaultAssemblyResolver();
readerParameters = new ReaderParameters { AssemblyResolver = resolver };
@@ -169,6 +167,14 @@ namespace BepInEx.IPAHarmonyShimmer
}
}
// Toss .NET 4 attribute in case mono is doesn't support it
var tfa = ad.CustomAttributes.FirstOrDefault(c => c.AttributeType.FullName == "System.Runtime.Versioning.TargetFrameworkAttribute");
if (tfa != null)
{
shimmed = true;
ad.CustomAttributes.Remove(tfa);
}
if (shimmed)
{
var pathPart = file.Substring(pluginDirectory.Length + 1);
+6 -54
View File
@@ -1,62 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{780F5E83-2A6B-4EA0-9476-449F5D96D56F}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>BepInEx.IPALoader</RootNamespace>
<AssemblyName>BepInEx.IPALoader</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<Deterministic>true</Deterministic>
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>false</DebugSymbols>
<TargetFramework>net35</TargetFramework>
<DebugType>none</DebugType>
<Optimize>false</Optimize>
<OutputPath>..\bin\plugins\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>none</DebugType>
<Optimize>true</Optimize>
<OutputPath>..\bin\plugins\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
</PropertyGroup>
<ItemGroup>
<Reference Include="BepInEx">
<HintPath>..\lib\BepInEx.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="System" />
<Reference Include="UnityEngine">
<HintPath>..\lib\UnityEngine.dll</HintPath>
<Private>False</Private>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="IllusionInjector\Bootstrapper.cs" />
<Compile Include="IllusionInjector\CompositePlugin.cs" />
<Compile Include="IllusionInjector\ConsoleWindow.cs" />
<Compile Include="IllusionInjector\Injector.cs" />
<Compile Include="IllusionInjector\PluginComponent.cs" />
<Compile Include="IllusionInjector\PluginManager.cs" />
<Compile Include="IllusionPlugin\IEnhancedPlugin.cs" />
<Compile Include="IllusionPlugin\IniFile.cs" />
<Compile Include="IllusionPlugin\IPlugin.cs" />
<Compile Include="IllusionPlugin\ModPrefs.cs" />
<Compile Include="IPALoader.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<PackageReference Include="BepInEx.BaseLib" Version="5.3.0" IncludeAssets="compile" />
<PackageReference Include="UnityEngine.Core" Version="5.6.0" IncludeAssets="compile" />
</ItemGroup>
<Import Project="..\Shared\Shared.projitems" Label="Shared" />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
@@ -44,7 +44,7 @@ namespace IllusionInjector
IPALoader.Logger.LogInfo(new string('-', 40));
IPALoader.Logger.LogInfo($"IPALoader found {_Plugins.Count} plugins in \"{pluginDirectory}\"");
foreach (var plugin in _Plugins)
IPALoader.Logger.LogInfo($"{plugin.Name}: {plugin.Version}");
IPALoader.Logger.LogInfo($"{plugin?.Name}: {plugin?.Version}");
IPALoader.Logger.LogInfo(new string('-', 40));
}
@@ -60,10 +60,17 @@ namespace IllusionInjector
var assembly = Assembly.LoadFrom(file);
foreach (var t in assembly.GetTypes())
if (t.GetInterface("IPlugin") != null)
if (typeof(IPlugin).IsAssignableFrom(t))
try
{
var pluginInstance = Activator.CreateInstance(t) as IPlugin;
if (pluginInstance == null)
{
IPALoader.Logger.LogWarning($"[WRN] Could not load {t.FullName} because types mismatch. Please check if you have multiple instances of IPA installed.");
continue;
}
string[] filter = null;
if (pluginInstance is IEnhancedPlugin plugin)
@@ -1,51 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{4E636178-ADD9-4306-BE77-357ADFB13AAB}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>BepInEx.IPAVirtualizer</RootNamespace>
<AssemblyName>BepInEx.IPAVirtualizer</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<Deterministic>true</Deterministic>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>false</DebugSymbols>
<TargetFramework>net35</TargetFramework>
<DebugType>none</DebugType>
<Optimize>false</Optimize>
<OutputPath>..\bin\patchers\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>none</DebugType>
<Optimize>true</Optimize>
<OutputPath>..\bin\patchers\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
</PropertyGroup>
<ItemGroup>
<Reference Include="BepInEx">
<HintPath>..\lib\BepInEx.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="Mono.Cecil, Version=0.10.4.0, Culture=neutral, PublicKeyToken=50cebf1cceb9d05e, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\lib\Mono.Cecil.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="System" />
</ItemGroup>
<ItemGroup>
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="IPAVirtualizer.cs" />
<PackageReference Include="BepInEx.BaseLib" Version="5.3.0" IncludeAssets="compile" />
<PackageReference Include="Mono.Cecil" Version="0.10.4" IncludeAssets="compile" />
</ItemGroup>
<Import Project="..\Shared\Shared.projitems" Label="Shared" />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
+1 -1
View File
@@ -2,7 +2,7 @@
{
public static class Metadata
{
public const string PluginsVersion = "1.2.2";
public const string PluginsVersion = "1.2.3";
internal const string ConfigFileName = "BepInEx.IPALoader.cfg";
internal const string ConfigSection = "Config";
BIN
View File
Binary file not shown.
-2344
View File
File diff suppressed because it is too large. Load diff
Binary file not shown.
-86
View File
@@ -1,86 +0,0 @@
<?xml version="1.0"?>
<doc>
<assembly>
<name>BepInEx.Harmony</name>
</assembly>
<members>
<member name="T:BepInEx.Harmony.ParameterByRefAttribute">
<summary>
Specifies the indices of parameters that are ByRef.
</summary>
</member>
<member name="P:BepInEx.Harmony.ParameterByRefAttribute.ParameterIndices">
<summary>
The indices of parameters that are ByRef.
</summary>
</member>
<member name="M:BepInEx.Harmony.ParameterByRefAttribute.#ctor(System.Int32[])">
<param name="parameterIndices">The indices of parameters that are ByRef.</param>
</member>
<member name="T:BepInEx.Harmony.HarmonyWrapper">
<summary>
A wrapper for Harmony based operations.
</summary>
</member>
<member name="M:BepInEx.Harmony.HarmonyWrapper.EmitDelegate``1(``0)">
<summary>
Returns an instruction to call the specified delegate.
</summary>
<typeparam name="T">The delegate type to emit.</typeparam>
<param name="action">The delegate to emit.</param>
<returns>The instruction to </returns>
</member>
<member name="M:BepInEx.Harmony.HarmonyWrapper.PatchAll(System.Type,HarmonyLib.Harmony)">
<summary>
Applies all patches specified in the type.
</summary>
<param name="type">The type to scan.</param>
<param name="harmonyInstance">The HarmonyInstance to use.</param>
</member>
<member name="M:BepInEx.Harmony.HarmonyWrapper.PatchAll(System.Type,System.String)">
<summary>
Applies all patches specified in the type.
</summary>
<param name="type">The type to scan.</param>
<param name="harmonyInstanceId">The ID for the Harmony instance to create, which will be used.</param>
</member>
<member name="M:BepInEx.Harmony.HarmonyWrapper.PatchAll(System.Reflection.Assembly,HarmonyLib.Harmony)">
<summary>
Applies all patches specified in the assembly.
</summary>
<param name="assembly">The assembly to scan.</param>
<param name="harmonyInstance">The HarmonyInstance to use.</param>
</member>
<member name="M:BepInEx.Harmony.HarmonyWrapper.PatchAll(System.Reflection.Assembly,System.String)">
<summary>
Applies all patches specified in the assembly.
</summary>
<param name="assembly">The assembly to scan.</param>
<param name="harmonyInstanceId">The ID for the Harmony instance to create, which will be used.</param>
</member>
<member name="M:BepInEx.Harmony.HarmonyWrapper.PatchAll(HarmonyLib.Harmony)">
<summary>
Applies all patches specified in the calling assembly.
</summary>
<param name="harmonyInstance">The Harmony instance to use.</param>
</member>
<member name="M:BepInEx.Harmony.HarmonyWrapper.PatchAll(System.String)">
<summary>
Applies all patches specified in the calling assembly.
</summary>
<param name="harmonyInstanceId">The ID for the Harmony instance to create, which will be used.</param>
</member>
<member name="T:BepInEx.Harmony.HarmonyExtensions">
<summary>
An extension class for Harmony based operations.
</summary>
</member>
<member name="M:BepInEx.Harmony.HarmonyExtensions.PatchAll(HarmonyLib.Harmony,System.Type)">
<summary>
Applies all patches specified in the type.
</summary>
<param name="harmonyInstance">The HarmonyInstance to use.</param>
<param name="type">The type to scan.</param>
</member>
</members>
</doc>
Binary file not shown.
-131
View File
@@ -1,131 +0,0 @@
<?xml version="1.0"?>
<doc>
<assembly>
<name>BepInEx.Preloader</name>
</assembly>
<members>
<member name="T:BepInEx.Preloader.EnvVars">
<summary>
Doorstop environment variables, passed into the BepInEx preloader.
<para>https://github.com/NeighTools/UnityDoorstop/wiki#environment-variables</para>
</summary>
</member>
<member name="P:BepInEx.Preloader.EnvVars.DOORSTOP_INVOKE_DLL_PATH">
<summary>
Path to the assembly that was invoked via Doorstop. Contains the same value as in "targetAssembly" configuration option in the config file.
</summary>
</member>
<member name="P:BepInEx.Preloader.EnvVars.DOORSTOP_MANAGED_FOLDER_DIR">
<summary>
Full path to the game's "Managed" folder that contains all the game's managed assemblies
</summary>
</member>
<member name="T:BepInEx.Preloader.Patching.AssemblyPatcherDelegate">
<summary>
Delegate used in patching assemblies.
</summary>
<param name="assembly">The assembly that is being patched.</param>
</member>
<member name="T:BepInEx.Preloader.Patching.AssemblyPatcher">
<summary>
Worker class which is used for loading and patching entire folders of assemblies, or alternatively patching and
loading assemblies one at a time.
</summary>
</member>
<member name="M:BepInEx.Preloader.Patching.AssemblyPatcher.AddPatcher(BepInEx.Preloader.Patching.PatcherPlugin)">
<summary>
Adds a single assembly patcher to the pool of applicable patches.
</summary>
<param name="patcher">Patcher to apply.</param>
</member>
<member name="M:BepInEx.Preloader.Patching.AssemblyPatcher.AddPatchersFromDirectory(System.String)">
<summary>
Adds all patchers from all managed assemblies specified in a directory.
</summary>
<param name="directory">Directory to search patcher DLLs from.</param>
<param name="patcherLocator">A function that locates assembly patchers in a given managed assembly.</param>
</member>
<member name="M:BepInEx.Preloader.Patching.AssemblyPatcher.DisposePatchers">
<summary>
Releases all patchers to let them be collected by GC.
</summary>
</member>
<member name="M:BepInEx.Preloader.Patching.AssemblyPatcher.PatchAndLoad(System.String)">
<summary>
Applies patchers to all assemblies in the given directory and loads patched assemblies into memory.
</summary>
<param name="directory">Directory to load CLR assemblies from.</param>
</member>
<member name="M:BepInEx.Preloader.Patching.AssemblyPatcher.Load(Mono.Cecil.AssemblyDefinition,System.String)">
<summary>
Loads an individual assembly definition into the CLR.
</summary>
<param name="assembly">The assembly to load.</param>
</member>
<member name="T:BepInEx.Preloader.Patching.PatcherPlugin">
<summary>
A single assembly patcher.
</summary>
</member>
<member name="P:BepInEx.Preloader.Patching.PatcherPlugin.TargetDLLs">
<summary>
Target assemblies to patch.
</summary>
</member>
<member name="P:BepInEx.Preloader.Patching.PatcherPlugin.Initializer">
<summary>
Initializer method that is run before any patching occurs.
</summary>
</member>
<member name="P:BepInEx.Preloader.Patching.PatcherPlugin.Finalizer">
<summary>
Finalizer method that is run after all patching is done.
</summary>
</member>
<member name="P:BepInEx.Preloader.Patching.PatcherPlugin.Patcher">
<summary>
The main patcher method that is called on every DLL defined in <see cref="P:BepInEx.Preloader.Patching.PatcherPlugin.TargetDLLs" />.
</summary>
</member>
<member name="P:BepInEx.Preloader.Patching.PatcherPlugin.TypeName">
<summary>
Type name of the patcher.
</summary>
</member>
<member name="M:BepInEx.Preloader.Entrypoint.Main(System.String[])">
<summary>
The main entrypoint of BepInEx, called from Doorstop.
</summary>
<param name="args">
The arguments passed in from Doorstop. First argument is the path of the currently executing
process.
</param>
</member>
<member name="T:BepInEx.Preloader.RuntimeFixes.TraceFix">
<summary>
This exists because the Mono implementation of <see cref="T:System.Diagnostics.Trace"/> is/was broken, and would call Write directly instead of calling TraceEvent. This class fixes that with a <see cref="N:BepInEx.Harmony"/> hook.
</summary>
</member>
<member name="T:BepInEx.Preloader.Preloader">
<summary>
The main entrypoint of BepInEx, and initializes all patchers and the chainloader.
</summary>
</member>
<member name="P:BepInEx.Preloader.Preloader.PreloaderLog">
<summary>
The log writer that is specific to the preloader.
</summary>
</member>
<member name="M:BepInEx.Preloader.Preloader.PatchEntrypoint(Mono.Cecil.AssemblyDefinition@)">
<summary>
Inserts BepInEx's own chainloader entrypoint into UnityEngine.
</summary>
<param name="assembly">The assembly that will be attempted to be patched.</param>
</member>
<member name="M:BepInEx.Preloader.Preloader.AllocateConsole">
<summary>
Allocates a console window for use by BepInEx safely.
</summary>
</member>
</members>
</doc>
BIN
View File
Binary file not shown.
-1269
View File
File diff suppressed because it is too large. Load diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
-165
View File
@@ -1,165 +0,0 @@
<?xml version="1.0"?>
<doc>
<assembly>
<name>MonoMod.RuntimeDetour</name>
</assembly>
<members>
<member name="T:MonoMod.RuntimeDetour.Detour">
<summary>
A fully managed detour.
Multiple Detours for a method to detour from can exist at any given time. Detours can be layered.
If you're writing your own detour manager or need to detour native functions, it's better to create instances of NativeDetour instead.
</summary>
</member>
<member name="M:MonoMod.RuntimeDetour.Detour.Apply">
<summary>
Mark the detour as applied in the detour chain. This can be done automatically when creating an instance.
</summary>
</member>
<member name="M:MonoMod.RuntimeDetour.Detour.Undo">
<summary>
Undo the detour without freeing it, allowing you to reapply it later.
</summary>
</member>
<member name="M:MonoMod.RuntimeDetour.Detour.Free">
<summary>
Free the detour, while also permanently undoing it. This makes any further operations on this detour invalid.
</summary>
</member>
<member name="M:MonoMod.RuntimeDetour.Detour.Dispose">
<summary>
Undo and free this temporary detour.
</summary>
</member>
<member name="M:MonoMod.RuntimeDetour.Detour.GenerateTrampoline(System.Reflection.MethodBase)">
<summary>
Generate a new DynamicMethod with which you can invoke the previous state.
</summary>
</member>
<member name="M:MonoMod.RuntimeDetour.Detour.GenerateTrampoline``1">
<summary>
Generate a new DynamicMethod with which you can invoke the previous state.
</summary>
</member>
<member name="M:MonoMod.RuntimeDetour.Hook.GenerateTrampoline``1">
<summary>
Generate a new DynamicMethod with which you can invoke the previous state.
</summary>
</member>
<member name="T:MonoMod.RuntimeDetour.NativeDetour">
<summary>
A "raw" native detour, acting as a wrapper around NativeDetourData with a few helpers.
Only one NativeDetour for a method to detour from can exist at any given time. NativeDetours cannot be layered.
If you don't need the trampoline generator or any of the management helpers, use DetourManager.Native directly.
Unless you're writing your own detour manager or need to detour native functions, it's better to create instances of Detour instead.
</summary>
</member>
<member name="M:MonoMod.RuntimeDetour.NativeDetour.Apply">
<summary>
Apply the native detour. This can be done automatically when creating an instance.
</summary>
</member>
<member name="M:MonoMod.RuntimeDetour.NativeDetour.Undo">
<summary>
Undo the native detour without freeing the detour native data, allowing you to reapply it later.
</summary>
</member>
<member name="M:MonoMod.RuntimeDetour.NativeDetour.Free">
<summary>
Free the detour's data without undoing it. This makes any further operations on this detour invalid.
</summary>
</member>
<member name="M:MonoMod.RuntimeDetour.NativeDetour.Dispose">
<summary>
Undo and free this temporary detour.
</summary>
</member>
<member name="M:MonoMod.RuntimeDetour.NativeDetour.GenerateTrampoline(System.Reflection.MethodBase)">
<summary>
Generate a new DynamicMethod with which you can invoke the previous state.
If the NativeDetour holds a reference to a managed method, a copy of the original method is returned.
If the NativeDetour holds a reference to a native function, an "undo-call-redo" trampoline with a matching signature is returned.
</summary>
</member>
<member name="M:MonoMod.RuntimeDetour.NativeDetour.GenerateTrampoline``1">
<summary>
Generate a new delegate with which you can invoke the previous state.
If the NativeDetour holds a reference to a managed method, a copy of the original method is returned.
If the NativeDetour holds a reference to a native function, an "undo-call-redo" trampoline with a matching signature is returned.
</summary>
</member>
<member name="M:MonoMod.RuntimeDetour.DetourHelper.Write(System.IntPtr,System.Int32@,System.Byte)">
<summary>
Write the given value at the address to + offs, afterwards advancing offs by sizeof(byte).
</summary>
</member>
<member name="M:MonoMod.RuntimeDetour.DetourHelper.Write(System.IntPtr,System.Int32@,System.UInt16)">
<summary>
Write the given value at the address to + offs, afterwards advancing offs by sizeof(ushort).
</summary>
</member>
<member name="M:MonoMod.RuntimeDetour.DetourHelper.Write(System.IntPtr,System.Int32@,System.UInt32)">
<summary>
Write the given value at the address to + offs, afterwards advancing offs by sizeof(ushort).
</summary>
</member>
<member name="M:MonoMod.RuntimeDetour.DetourHelper.Write(System.IntPtr,System.Int32@,System.UInt64)">
<summary>
Write the given value at the address to + offs, afterwards advancing offs by sizeof(ulong).
</summary>
</member>
<member name="M:MonoMod.RuntimeDetour.DetourHelper.GenerateNativeProxy(System.IntPtr,System.Reflection.MethodBase)">
<summary>
Generate a DynamicMethod to easily call the given native function from another DynamicMethod.
</summary>
<param name="target">The pointer to the native function to call.</param>
<param name="signature">A MethodBase with the target function's signature.</param>
<returns>The detoured DynamicMethod.</returns>
</member>
<member name="M:MonoMod.RuntimeDetour.DetourHelper.StubCriticalDetour(MonoMod.Utils.DynamicMethodDefinition)">
<summary>
Fill the DynamicMethodDefinition with a throw.
</summary>
</member>
<member name="M:MonoMod.RuntimeDetour.DetourHelper.EmitDetourCopy(Mono.Cecil.Cil.ILProcessor,System.IntPtr,System.IntPtr,System.Byte)">
<summary>
Emit a call to DetourManager.Native.Copy using the given parameters.
</summary>
</member>
<member name="M:MonoMod.RuntimeDetour.DetourHelper.EmitDetourApply(Mono.Cecil.Cil.ILProcessor,MonoMod.RuntimeDetour.NativeDetourData)">
<summary>
Emit a call to DetourManager.Native.Apply using a copy of the given data.
</summary>
</member>
<member name="T:MonoMod.RuntimeDetour.NativeDetourData">
<summary>
The data forming a "raw" native detour, created and consumed by DetourManager.Native.
</summary>
</member>
<member name="F:MonoMod.RuntimeDetour.NativeDetourData.Method">
<summary>
The method to detour from. Set when the structure is created by the IDetourNativePlatform.
</summary>
</member>
<member name="F:MonoMod.RuntimeDetour.NativeDetourData.Target">
<summary>
The target method to be called instead. Set when the structure is created by the IDetourNativePlatform.
</summary>
</member>
<member name="F:MonoMod.RuntimeDetour.NativeDetourData.Type">
<summary>
The type of the detour. Determined when the structure is created by the IDetourNativePlatform.
</summary>
</member>
<member name="F:MonoMod.RuntimeDetour.NativeDetourData.Size">
<summary>
The size of the detour. Calculated when the structure is created by the IDetourNativePlatform.
</summary>
</member>
<member name="F:MonoMod.RuntimeDetour.NativeDetourData.Extra">
<summary>
DetourManager.Native-specific data.
</summary>
</member>
</members>
</doc>
Binary file not shown.
File diff suppressed because it is too large. Load diff
Binary file not shown.
+6
View File
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="BepInExLibs" value="https://pkgs.dev.azure.com/bepinex/BepInEx/_packaging/BepInExLibs/nuget/v3/index.json" />
</packageSources>
</configuration>