mirror of
https://github.com/BepInEx/IPALoaderX.git
synced 2026-11-16 01:41:00 -10:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
739a7e5ba5 | ||
|
|
aba54d0ae0 | ||
|
|
534e4a22f4 | ||
|
|
fafe807087 | ||
|
|
6404ae0890 | ||
|
|
633b8dcf3b | ||
|
|
287048f6b8 |
No files matched your search
@@ -1,63 +0,0 @@
|
||||
###############################################################################
|
||||
# Set default behavior to automatically normalize line endings.
|
||||
###############################################################################
|
||||
* text=auto
|
||||
|
||||
###############################################################################
|
||||
# Set default behavior for command prompt diff.
|
||||
#
|
||||
# This is need for earlier builds of msysgit that does not have it on by
|
||||
# default for csharp files.
|
||||
# Note: This is only used by command line
|
||||
###############################################################################
|
||||
#*.cs diff=csharp
|
||||
|
||||
###############################################################################
|
||||
# Set the merge driver for project and solution files
|
||||
#
|
||||
# Merging from the command prompt will add diff markers to the files if there
|
||||
# are conflicts (Merging from VS is not affected by the settings below, in VS
|
||||
# the diff markers are never inserted). Diff markers may cause the following
|
||||
# file extensions to fail to load in VS. An alternative would be to treat
|
||||
# these files as binary and thus will always conflict and require user
|
||||
# intervention with every merge. To do so, just uncomment the entries below
|
||||
###############################################################################
|
||||
#*.sln merge=binary
|
||||
#*.csproj merge=binary
|
||||
#*.vbproj merge=binary
|
||||
#*.vcxproj merge=binary
|
||||
#*.vcproj merge=binary
|
||||
#*.dbproj merge=binary
|
||||
#*.fsproj merge=binary
|
||||
#*.lsproj merge=binary
|
||||
#*.wixproj merge=binary
|
||||
#*.modelproj merge=binary
|
||||
#*.sqlproj merge=binary
|
||||
#*.wwaproj merge=binary
|
||||
|
||||
###############################################################################
|
||||
# behavior for image files
|
||||
#
|
||||
# image files are treated as binary by default.
|
||||
###############################################################################
|
||||
#*.jpg binary
|
||||
#*.png binary
|
||||
#*.gif binary
|
||||
|
||||
###############################################################################
|
||||
# diff behavior for common document formats
|
||||
#
|
||||
# Convert binary document formats to text before diffing them. This feature
|
||||
# is only available from the command line. Turn it on by uncommenting the
|
||||
# entries below.
|
||||
###############################################################################
|
||||
#*.doc diff=astextplain
|
||||
#*.DOC diff=astextplain
|
||||
#*.docx diff=astextplain
|
||||
#*.DOCX diff=astextplain
|
||||
#*.dot diff=astextplain
|
||||
#*.DOT diff=astextplain
|
||||
#*.pdf diff=astextplain
|
||||
#*.PDF diff=astextplain
|
||||
#*.rtf diff=astextplain
|
||||
#*.RTF diff=astextplain
|
||||
+1
-2
@@ -258,5 +258,4 @@ paket-files/
|
||||
|
||||
# Python Tools for Visual Studio (PTVS)
|
||||
__pycache__/
|
||||
*.pyc
|
||||
/lib
|
||||
*.pyc
|
||||
@@ -45,28 +45,11 @@
|
||||
<HintPath>..\lib\BepInEx.Harmony.dll</HintPath>
|
||||
<Private>False</Private>
|
||||
</Reference>
|
||||
<Reference Include="Mono.Cecil, Version=0.10.3.0, Culture=neutral, PublicKeyToken=50cebf1cceb9d05e, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Mono.Cecil.0.10.3\lib\net35\Mono.Cecil.dll</HintPath>
|
||||
<Private>False</Private>
|
||||
</Reference>
|
||||
<Reference Include="Mono.Cecil.Mdb, Version=0.10.3.0, Culture=neutral, PublicKeyToken=50cebf1cceb9d05e, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Mono.Cecil.0.10.3\lib\net35\Mono.Cecil.Mdb.dll</HintPath>
|
||||
<Private>False</Private>
|
||||
</Reference>
|
||||
<Reference Include="Mono.Cecil.Pdb, Version=0.10.3.0, Culture=neutral, PublicKeyToken=50cebf1cceb9d05e, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Mono.Cecil.0.10.3\lib\net35\Mono.Cecil.Pdb.dll</HintPath>
|
||||
<Private>False</Private>
|
||||
</Reference>
|
||||
<Reference Include="Mono.Cecil.Rocks, Version=0.10.3.0, Culture=neutral, PublicKeyToken=50cebf1cceb9d05e, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Mono.Cecil.0.10.3\lib\net35\Mono.Cecil.Rocks.dll</HintPath>
|
||||
<Reference Include="Mono.Cecil">
|
||||
<HintPath>..\lib\Mono.Cecil.dll</HintPath>
|
||||
<Private>False</Private>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="HarmonyShimmer.cs" />
|
||||
@@ -89,9 +72,6 @@
|
||||
<Compile Include="Harmony\Traverse.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="packages.config" />
|
||||
</ItemGroup>
|
||||
<Import Project="..\Shared\Shared.projitems" Label="Shared" />
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
||||
@@ -112,6 +112,12 @@ namespace Harmony
|
||||
return processor.Patch().FirstOrDefault();
|
||||
}
|
||||
|
||||
public void PatchVoid(MethodBase original, HarmonyMethod prefix, HarmonyMethod postfix, HarmonyMethod transpiler)
|
||||
{
|
||||
var processor = new PatchProcessor(this, new List<MethodBase> { original }, prefix, postfix, transpiler);
|
||||
processor.Patch();
|
||||
}
|
||||
|
||||
public void UnpatchAll(string harmonyID = null)
|
||||
{
|
||||
bool IDCheck(Patch patchInfo) => harmonyID == null || patchInfo.owner == harmonyID;
|
||||
|
||||
@@ -9,6 +9,7 @@ using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Reflection.Emit;
|
||||
|
||||
namespace BepInEx.IPAHarmonyShimmer
|
||||
{
|
||||
@@ -18,8 +19,8 @@ namespace BepInEx.IPAHarmonyShimmer
|
||||
public static IEnumerable<string> TargetDLLs { get; } = new[] { "Assembly-CSharp.dll" };
|
||||
|
||||
private static readonly ManualLogSource Logger = Logging.Logger.CreateLogSource("IPAHarmonyShim");
|
||||
public static ConfigWrapper<string> IPAPluginsPath { get; private set; }
|
||||
public static ConfigFile cfgFile { get; } = new ConfigFile(Path.Combine(Paths.ConfigPath, Metadata.ConfigFileName), false);
|
||||
public static ConfigEntry<string> IPAPluginsPath { get; private set; }
|
||||
public static ConfigFile CfgFile { get; } = new ConfigFile(Path.Combine(Paths.ConfigPath, Metadata.ConfigFileName), false);
|
||||
|
||||
private static DefaultAssemblyResolver resolver;
|
||||
private static ReaderParameters readerParameters;
|
||||
@@ -56,7 +57,7 @@ namespace BepInEx.IPAHarmonyShimmer
|
||||
|
||||
public static void Initialize()
|
||||
{
|
||||
IPAPluginsPath = cfgFile.Wrap(Metadata.ConfigSection, Metadata.ConfigKey, Metadata.ConfigDescription, Metadata.ConfigDefaultValue);
|
||||
IPAPluginsPath = CfgFile.Bind(Metadata.ConfigSection, Metadata.ConfigKey, Metadata.ConfigDefaultValue, Metadata.ConfigDescription);
|
||||
|
||||
HarmonyWrapper.PatchAll(typeof(HarmonyShimmer));
|
||||
|
||||
@@ -156,6 +157,16 @@ namespace BepInEx.IPAHarmonyShimmer
|
||||
tr.Namespace = @namespace;
|
||||
tr.Scope = harmony2Ref;
|
||||
}
|
||||
|
||||
foreach (var memberReference in ad.MainModule.GetMemberReferences())
|
||||
{
|
||||
if (memberReference is MethodReference mref &&
|
||||
mref.DeclaringType.Name == "HarmonyInstance" &&
|
||||
mref.DeclaringType.Scope == harmonyRef &&
|
||||
mref.Name == "Patch" &&
|
||||
mref.ReturnType.FullName == "System.Void")
|
||||
mref.Name = "PatchVoid";
|
||||
}
|
||||
}
|
||||
|
||||
if (shimmed)
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="Mono.Cecil" version="0.10.3" targetFramework="net35" />
|
||||
</packages>
|
||||
@@ -14,12 +14,12 @@ namespace BepInEx.IPALoader
|
||||
internal static new ManualLogSource Logger;
|
||||
private readonly bool run = true;
|
||||
|
||||
public static ConfigWrapper<string> IPAPluginsPath { get; private set; }
|
||||
public static ConfigFile cfgFile { get; } = new ConfigFile(Path.Combine(Paths.ConfigPath, Metadata.ConfigFileName), false);
|
||||
public static ConfigEntry<string> IPAPluginsPath { get; private set; }
|
||||
public static ConfigFile CfgFile { get; } = new ConfigFile(Path.Combine(Paths.ConfigPath, Metadata.ConfigFileName), false);
|
||||
|
||||
private IPALoader()
|
||||
{
|
||||
IPAPluginsPath = cfgFile.Wrap(Metadata.ConfigSection, Metadata.ConfigKey, Metadata.ConfigDescription, Metadata.ConfigDefaultValue);
|
||||
IPAPluginsPath = CfgFile.Bind(Metadata.ConfigSection, Metadata.ConfigKey, Metadata.ConfigDefaultValue, Metadata.ConfigDescription);
|
||||
Logger = base.Logger;
|
||||
|
||||
foreach (var assembly in AppDomain.CurrentDomain.GetAssemblies())
|
||||
@@ -36,10 +36,8 @@ namespace BepInEx.IPALoader
|
||||
// Redirect missing assembly requests to this assembly, since we have all the emulated code
|
||||
AppDomain.CurrentDomain.AssemblyResolve += (sender, args) =>
|
||||
{
|
||||
Logger.LogInfo(args.Name);
|
||||
var name = new AssemblyName(args.Name).Name;
|
||||
if (name == "IllusionPlugin" ||
|
||||
name == "IllusionInjector")
|
||||
if (name == "IllusionPlugin" || name == "IllusionInjector")
|
||||
return Assembly.GetExecutingAssembly();
|
||||
|
||||
return null;
|
||||
|
||||
@@ -35,8 +35,9 @@
|
||||
<HintPath>..\lib\BepInEx.dll</HintPath>
|
||||
<Private>False</Private>
|
||||
</Reference>
|
||||
<Reference Include="Mono.Cecil, Version=0.10.3.0, Culture=neutral, PublicKeyToken=50cebf1cceb9d05e, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Mono.Cecil.0.10.3\lib\net35\Mono.Cecil.dll</HintPath>
|
||||
<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" />
|
||||
@@ -45,9 +46,6 @@
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="IPAVirtualizer.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="packages.config" />
|
||||
</ItemGroup>
|
||||
<Import Project="..\Shared\Shared.projitems" Label="Shared" />
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
||||
@@ -1,5 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<packages>
|
||||
<package id="Mono.Cecil" version="0.10.3" targetFramework="net35" />
|
||||
</packages>
|
||||
@@ -9,6 +9,7 @@ This plugin is an improved version of the original [IPALoader](https://github.co
|
||||
* Integration with BepInEx logger
|
||||
* Parts of IPA rewritten for simplicity
|
||||
* Allows virtualization via a preloader plugin
|
||||
* Patches IPA plugins with Harmony ILMerged to use the BepInEx's Harmony
|
||||
|
||||
While IPALoaderX aims to emulate IPA as closely as possible, I can't guarantee absolutely every plugin will work.
|
||||
If you suspect some plugin is not handled correctly by IPALoaderX, don't hesitate to make a new issue on this github page.
|
||||
@@ -21,7 +22,7 @@ For example, this plugin allows for BepInEx to be used in Honey Select in order
|
||||
## How to use
|
||||
|
||||
1. Install [BepInEx](https://github.com/BepInEx/BepInEx#readme) to your game (you may need to edit the BepInEx entrypoint for it to work).
|
||||
2. Download the latest IPALoaderX release from [here](https://github.com/Keelhauled/IPALoaderX/releases).
|
||||
3. Place IPALoaderX.dll in the `BepInEx` folder and IPAVirtualizer.dll in the `patchers` folder.
|
||||
2. Download the latest IPALoaderX release from [here](https://github.com/BepInEx/IPALoaderX/releases).
|
||||
3. Place BepInEx.IPALoader.dll in the `BepInEx\plugins` folder and BepInEx.IPAVirtualizer.dll and BepInEx.IPAHarmonyShimmer.dll in the `BepInEx\patchers` folder.
|
||||
4. Make `Plugins` folder in your game folder (just like with original IPA).
|
||||
5. Put IPA plugins into `Plugins` folder, just like with IPA.
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
{
|
||||
public static class Metadata
|
||||
{
|
||||
public const string PluginsVersion = "1.2";
|
||||
public const string PluginsVersion = "1.2.2";
|
||||
|
||||
internal const string ConfigFileName = "BepInEx.IPALoader.cfg";
|
||||
internal const string ConfigSection = "Config";
|
||||
|
||||
Binary file not shown.
+2344
File diff suppressed because it is too large.
Load diff
Binary file not shown.
@@ -0,0 +1,86 @@
|
||||
<?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.
@@ -0,0 +1,131 @@
|
||||
<?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>
|
||||
Binary file not shown.
+1269
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.
@@ -0,0 +1,165 @@
|
||||
<?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.
Reference in new issue
Block a user