pass on backend, spelling

This commit is contained in:
goat 2023-08-07 23:57:31 +02:00
parent fe8ee19175
commit 3f764d2e40
No known key found for this signature in database
GPG key ID: 49E2AA8C6A76498B
2 changed files with 3 additions and 3 deletions

View file

@ -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()

View file

@ -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();