mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-07-31 18:19:57 -06:00
Move solution and projects to src
This commit is contained in:
19
src/ARMeilleure/Translation/DelegateInfo.cs
Normal file
19
src/ARMeilleure/Translation/DelegateInfo.cs
Normal file
@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace ARMeilleure.Translation
|
||||
{
|
||||
class DelegateInfo
|
||||
{
|
||||
private readonly Delegate _dlg; // Ensure that this delegate will not be garbage collected.
|
||||
|
||||
public IntPtr FuncPtr { get; }
|
||||
|
||||
public DelegateInfo(Delegate dlg)
|
||||
{
|
||||
_dlg = dlg;
|
||||
|
||||
FuncPtr = Marshal.GetFunctionPointerForDelegate<Delegate>(dlg);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user