mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-15 20:37:42 +01:00
chore: make SigScanner public, have separate service TargetSigScanner that resolves via ISigScanner (closes #1426)
This commit is contained in:
parent
1d0b61e32b
commit
ebabb7bd04
26 changed files with 55 additions and 41 deletions
|
|
@ -29,7 +29,7 @@ internal static class SignatureHelper
|
|||
/// <returns>Collection of created IDalamudHooks.</returns>
|
||||
internal static IEnumerable<IDalamudHook> Initialize(object self, bool log = true)
|
||||
{
|
||||
var scanner = Service<SigScanner>.Get();
|
||||
var scanner = Service<TargetSigScanner>.Get();
|
||||
var selfType = self.GetType();
|
||||
var fields = selfType.GetFields(Flags).Select(field => (IFieldOrPropertyInfo)new FieldInfoWrapper(field))
|
||||
.Concat(selfType.GetProperties(Flags).Select(prop => new PropertyInfoWrapper(prop)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue