2015-06-04 02:04:42 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Runtime.InteropServices;
|
|
|
|
|
using BizHawk.Emulation.Common;
|
|
|
|
|
|
|
|
|
|
namespace BizHawk.Emulation.Cores.Nintendo.GBA
|
|
|
|
|
{
|
|
|
|
|
public static class LibmGBA
|
|
|
|
|
{
|
|
|
|
|
const string dll = "mgba.dll";
|
|
|
|
|
const CallingConvention cc = CallingConvention.Cdecl;
|
|
|
|
|
|
|
|
|
|
[DllImport(dll, CallingConvention=cc)]
|
|
|
|
|
public static extern void BizDestroy(IntPtr ctx);
|
|
|
|
|
|
|
|
|
|
[DllImport(dll, CallingConvention = cc)]
|
2015-06-05 00:12:12 +00:00
|
|
|
|
public static extern IntPtr BizCreate(byte[] bios);
|
2015-06-04 02:04:42 +00:00
|
|
|
|
|
|
|
|
|
[DllImport(dll, CallingConvention = cc)]
|
|
|
|
|
public static extern void BizReset(IntPtr ctx);
|
|
|
|
|
|
|
|
|
|
[DllImport(dll, CallingConvention = cc)]
|
|
|
|
|
public static extern bool BizLoad(IntPtr ctx, byte[] data, int length);
|
|
|
|
|
|
|
|
|
|
[DllImport(dll, CallingConvention = cc)]
|
2015-06-04 23:30:24 +00:00
|
|
|
|
public static extern void BizAdvance(IntPtr ctx, LibVBANext.Buttons keys, int[] vbuff, ref int nsamp, short[] sbuff);
|
2015-06-04 02:04:42 +00:00
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|