mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-20 14:57:45 +01:00
pass on backend, spelling
This commit is contained in:
parent
fe8ee19175
commit
3f764d2e40
2 changed files with 3 additions and 3 deletions
|
|
@ -42,7 +42,7 @@ internal class HookProviderPluginScoped : IHookProvider, IServiceType, IDisposab
|
||||||
/// <inheritdoc/>
|
/// <inheritdoc/>
|
||||||
public void InitializeFromAttributes(object self)
|
public void InitializeFromAttributes(object self)
|
||||||
{
|
{
|
||||||
foreach (var hook in SignatureHelper.Initialise(self))
|
foreach (var hook in SignatureHelper.Initialize(self))
|
||||||
this.trackedHooks.Add(hook);
|
this.trackedHooks.Add(hook);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -80,7 +80,7 @@ internal class HookProviderPluginScoped : IHookProvider, IServiceType, IDisposab
|
||||||
|
|
||||||
/// <inheritdoc/>
|
/// <inheritdoc/>
|
||||||
public Hook<T> FromSignature<T>(string signature, T detour, IHookProvider.HookBackend backend = IHookProvider.HookBackend.Automatic) where T : Delegate
|
public Hook<T> FromSignature<T>(string signature, T detour, IHookProvider.HookBackend backend = IHookProvider.HookBackend.Automatic) where T : Delegate
|
||||||
=> this.FromAddress(this.scanner.ScanText(signature), detour);
|
=> this.FromAddress(this.scanner.ScanText(signature), detour, backend);
|
||||||
|
|
||||||
/// <inheritdoc/>
|
/// <inheritdoc/>
|
||||||
public void Dispose()
|
public void Dispose()
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ internal static class SignatureHelper
|
||||||
/// <param name="self">The object to initialise.</param>
|
/// <param name="self">The object to initialise.</param>
|
||||||
/// <param name="log">If warnings should be logged using <see cref="PluginLog"/>.</param>
|
/// <param name="log">If warnings should be logged using <see cref="PluginLog"/>.</param>
|
||||||
/// <returns>Collection of created IDalamudHooks.</returns>
|
/// <returns>Collection of created IDalamudHooks.</returns>
|
||||||
internal static IEnumerable<IDalamudHook> Initialise(object self, bool log = true)
|
internal static IEnumerable<IDalamudHook> Initialize(object self, bool log = true)
|
||||||
{
|
{
|
||||||
var scanner = Service<SigScanner>.Get();
|
var scanner = Service<SigScanner>.Get();
|
||||||
var selfType = self.GetType();
|
var selfType = self.GetType();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue