BizHawk/BizHawk.Emulation.Cores/Consoles/Nintendo/Gameboy/LibPizza.cs

37 lines
840 B
C#
Raw Normal View History

2017-06-15 23:00:41 +00:00
using BizHawk.Common.BizInvoke;
2017-06-18 20:05:33 +00:00
using BizHawk.Emulation.Cores.Waterbox;
2017-06-15 23:00:41 +00:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
namespace BizHawk.Emulation.Cores.Consoles.Nintendo.Gameboy
{
2017-06-18 20:05:33 +00:00
public abstract class LibPizza : LibWaterboxCore
2017-06-15 23:00:41 +00:00
{
2017-06-16 01:38:52 +00:00
[Flags]
public enum Buttons : uint
2017-06-16 01:38:52 +00:00
{
A = 0x01,
B = 0x02,
SELECT = 0x04,
START = 0x08,
RIGHT = 0x10,
LEFT = 0x20,
UP = 0x40,
DOWN = 0x80
}
2017-06-15 23:00:41 +00:00
[StructLayout(LayoutKind.Sequential)]
2017-06-18 20:05:33 +00:00
public new class FrameInfo : LibWaterboxCore.FrameInfo
2017-06-15 23:00:41 +00:00
{
2017-06-16 01:38:52 +00:00
public Buttons Keys;
2017-06-15 23:00:41 +00:00
}
[BizImport(CC)]
public abstract bool Init(byte[] rom, int romlen, bool sgb, byte[] spc, int spclen);
2017-06-15 23:00:41 +00:00
[BizImport(CC)]
2017-06-16 01:38:52 +00:00
public abstract bool IsCGB();
2017-06-15 23:00:41 +00:00
}
}