mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 10:17:22 +01:00
Replace GetPlugin(Delegate) stub by actual implementation
This commit is contained in:
parent
5be021b0eb
commit
e240a42a2c
1 changed files with 6 additions and 1 deletions
|
|
@ -100,7 +100,12 @@ public sealed class IntegrationSettingsRegistry : IService, IDisposable
|
|||
}
|
||||
|
||||
private IExposedPlugin? GetPlugin(Delegate @delegate)
|
||||
=> null; // TODO Use IDalamudPluginInterface.GetPlugin(Assembly) when it's in Dalamud stable.
|
||||
=> @delegate.Method.DeclaringType
|
||||
switch
|
||||
{
|
||||
null => null,
|
||||
var type => _pluginInterface.GetPlugin(type.Assembly),
|
||||
};
|
||||
|
||||
private int FindSectionIndex(string internalName)
|
||||
=> _sections.FindIndex(section => section.InternalName.Equals(internalName, StringComparison.Ordinal));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue