2017-04-18 08:17:11 +00:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
using BizHawk.Common;
|
|
|
|
|
|
|
|
|
|
namespace BizHawk.Emulation.Cores.Libretro
|
|
|
|
|
{
|
|
|
|
|
unsafe partial class LibretroApi
|
|
|
|
|
{
|
2017-06-12 07:31:47 +00:00
|
|
|
|
public Tuple<IntPtr, ulong> QUERY_GetMemory(RETRO_MEMORY mem)
|
2017-04-18 08:17:11 +00:00
|
|
|
|
{
|
2017-05-01 09:16:31 +00:00
|
|
|
|
comm->value = (uint)mem;
|
|
|
|
|
Message(eMessage.QUERY_GetMemory);
|
2017-06-12 07:31:47 +00:00
|
|
|
|
return Tuple.Create(new IntPtr((long)comm->buf[(int)BufId.Param0]), comm->buf_size[(int)BufId.Param0]);
|
2017-04-18 08:17:11 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|