mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-17 05:17:42 +01:00
Rename service
This commit is contained in:
parent
a0b7f53b01
commit
ddee969d88
1 changed files with 4 additions and 4 deletions
|
|
@ -27,7 +27,7 @@ namespace Dalamud.Interface.Internal;
|
||||||
/// </para>
|
/// </para>
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
[ServiceManager.EarlyLoadedService]
|
[ServiceManager.EarlyLoadedService]
|
||||||
internal sealed unsafe class ImGuiClipboardConfig : IServiceType, IDisposable
|
internal sealed unsafe class ImGuiClipboardFunctionProvider : IServiceType, IDisposable
|
||||||
{
|
{
|
||||||
private readonly nint clipboardUserDataOriginal;
|
private readonly nint clipboardUserDataOriginal;
|
||||||
private readonly delegate* unmanaged<nint, byte*, void> setTextOriginal;
|
private readonly delegate* unmanaged<nint, byte*, void> setTextOriginal;
|
||||||
|
|
@ -35,7 +35,7 @@ internal sealed unsafe class ImGuiClipboardConfig : IServiceType, IDisposable
|
||||||
private GCHandle clipboardUserData;
|
private GCHandle clipboardUserData;
|
||||||
|
|
||||||
[ServiceManager.ServiceConstructor]
|
[ServiceManager.ServiceConstructor]
|
||||||
private ImGuiClipboardConfig(InterfaceManager.InterfaceManagerWithScene imws)
|
private ImGuiClipboardFunctionProvider(InterfaceManager.InterfaceManagerWithScene imws)
|
||||||
{
|
{
|
||||||
// Effectively waiting for ImGui to become available.
|
// Effectively waiting for ImGui to become available.
|
||||||
_ = imws;
|
_ = imws;
|
||||||
|
|
@ -52,11 +52,11 @@ internal sealed unsafe class ImGuiClipboardConfig : IServiceType, IDisposable
|
||||||
|
|
||||||
[UnmanagedCallersOnly]
|
[UnmanagedCallersOnly]
|
||||||
static void StaticSetClipboardTextImpl(nint userData, byte* text) =>
|
static void StaticSetClipboardTextImpl(nint userData, byte* text) =>
|
||||||
((ImGuiClipboardConfig)GCHandle.FromIntPtr(userData).Target)!.SetClipboardTextImpl(text);
|
((ImGuiClipboardFunctionProvider)GCHandle.FromIntPtr(userData).Target)!.SetClipboardTextImpl(text);
|
||||||
|
|
||||||
[UnmanagedCallersOnly]
|
[UnmanagedCallersOnly]
|
||||||
static byte* StaticGetClipboardTextImpl(nint userData) =>
|
static byte* StaticGetClipboardTextImpl(nint userData) =>
|
||||||
((ImGuiClipboardConfig)GCHandle.FromIntPtr(userData).Target)!.GetClipboardTextImpl();
|
((ImGuiClipboardFunctionProvider)GCHandle.FromIntPtr(userData).Target)!.GetClipboardTextImpl();
|
||||||
}
|
}
|
||||||
|
|
||||||
[SuppressMessage("ReSharper", "AssignNullToNotNullAttribute", Justification = "If it's null, it's crashworthy")]
|
[SuppressMessage("ReSharper", "AssignNullToNotNullAttribute", Justification = "If it's null, it's crashworthy")]
|
||||||
Loading…
Add table
Add a link
Reference in a new issue