mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-01-03 06:13:40 +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/>
|
||||
public void InitializeFromAttributes(object self)
|
||||
{
|
||||
foreach (var hook in SignatureHelper.Initialise(self))
|
||||
foreach (var hook in SignatureHelper.Initialize(self))
|
||||
this.trackedHooks.Add(hook);
|
||||
}
|
||||
|
||||
|
|
@ -80,7 +80,7 @@ internal class HookProviderPluginScoped : IHookProvider, IServiceType, IDisposab
|
|||
|
||||
/// <inheritdoc/>
|
||||
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/>
|
||||
public void Dispose()
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ internal static class SignatureHelper
|
|||
/// <param name="self">The object to initialise.</param>
|
||||
/// <param name="log">If warnings should be logged using <see cref="PluginLog"/>.</param>
|
||||
/// <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 selfType = self.GetType();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue