mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 13:08:24 +01:00
first
This commit is contained in:
parent
bd62d51ec9
commit
b578433e37
1 changed files with 784842 additions and 0 deletions
15
Brutal.Fmod/FmodCoreApi/Manual/CallbackExtensions.cs
Normal file
15
Brutal.Fmod/FmodCoreApi/Manual/CallbackExtensions.cs
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace Brutal.FmodApi;
|
||||
|
||||
public partial struct FileAsyncDoneFuncPtr
|
||||
{
|
||||
public unsafe void Invoke(AsyncReadInfo* info, Result result)
|
||||
{
|
||||
if (_ptr == IntPtr.Zero)
|
||||
return;
|
||||
|
||||
var func = Marshal.GetDelegateForFunctionPointer<FileAsyncDoneFunc>(_ptr);
|
||||
func(info, result);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue