16 lines
387 B
C#
16 lines
387 B
C#
using System;
|
|
|
|
using BizHawk.Common;
|
|
|
|
namespace BizHawk.Emulation.Cores.Libretro
|
|
{
|
|
unsafe partial class LibretroApi
|
|
{
|
|
public Tuple<IntPtr, ulong> QUERY_GetMemory(RETRO_MEMORY mem)
|
|
{
|
|
comm->value = (uint)mem;
|
|
Message(eMessage.QUERY_GetMemory);
|
|
return Tuple.Create(new IntPtr((long)comm->buf[(int)BufId.Param0]), comm->buf_size[(int)BufId.Param0]);
|
|
}
|
|
}
|
|
} |