mirror of
https://git.ryujinx.app/projects/Kenji-NX.git
synced 2026-10-04 14:49:28 +02:00
use UnmanagedCallersOnly for delegates
This commit is contained in:
committed by
KeatonTheBot
parent
1ea90c41a9
commit
7bf6c3f016
@@ -4,15 +4,10 @@ namespace ARMeilleure.Translation
|
||||
{
|
||||
class DelegateInfo
|
||||
{
|
||||
#pragma warning disable IDE0052 // Remove unread private member
|
||||
private readonly Delegate _dlg; // Ensure that this delegate will not be garbage collected.
|
||||
#pragma warning restore IDE0052
|
||||
|
||||
public IntPtr FuncPtr { get; }
|
||||
|
||||
public DelegateInfo(Delegate dlg, IntPtr funcPtr)
|
||||
public DelegateInfo(IntPtr funcPtr)
|
||||
{
|
||||
_dlg = dlg;
|
||||
FuncPtr = funcPtr;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user