BizHawk/BizHawk.Emulation.Cores/Libretro/LibretroApi_QUERY.cs

16 lines
387 B
C#
Raw Normal View History

2017-04-18 08:17:11 +00:00
using System;
using BizHawk.Common;
namespace BizHawk.Emulation.Cores.Libretro
{
unsafe partial class LibretroApi
{
public Tuple<IntPtr, ulong> QUERY_GetMemory(RETRO_MEMORY mem)
2017-04-18 08:17:11 +00:00
{
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]);
2017-04-18 08:17:11 +00:00
}
}
}