2014-07-28 20:45:21 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Runtime.InteropServices;
|
2017-05-21 21:43:43 +00:00
|
|
|
|
using BizHawk.Common.BizInvoke;
|
2017-06-17 16:57:43 +00:00
|
|
|
|
using BizHawk.Emulation.Cores.Waterbox;
|
2014-07-28 20:45:21 +00:00
|
|
|
|
|
|
|
|
|
namespace BizHawk.Emulation.Cores.Nintendo.SNES9X
|
|
|
|
|
{
|
2017-06-17 16:57:43 +00:00
|
|
|
|
public abstract class LibSnes9x : LibWaterboxCore
|
2014-07-28 20:45:21 +00:00
|
|
|
|
{
|
2017-05-28 14:18:20 +00:00
|
|
|
|
public enum LeftPortDevice : uint
|
|
|
|
|
{
|
|
|
|
|
//None = 0, // something in the libretro spaghetti input goes wonky with None
|
|
|
|
|
Joypad = 1
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum RightPortDevice : uint
|
|
|
|
|
{
|
|
|
|
|
//None = 0, // something in the libretro spaghetti input goes wonky with None
|
|
|
|
|
Joypad = 1,
|
|
|
|
|
Multitap = 2,
|
|
|
|
|
Mouse = 3,
|
|
|
|
|
SuperScope = 4,
|
|
|
|
|
Justifier = 5
|
|
|
|
|
}
|
2014-07-28 20:45:21 +00:00
|
|
|
|
|
2017-06-17 16:57:43 +00:00
|
|
|
|
[BizImport(CC)]
|
|
|
|
|
public abstract void SetButtons(short[] buttons);
|
2017-05-21 21:43:43 +00:00
|
|
|
|
[BizImport(CC)]
|
|
|
|
|
public abstract void biz_set_sound_channels(int channels);
|
|
|
|
|
[BizImport(CC)]
|
|
|
|
|
public abstract void biz_set_layers(int layers);
|
|
|
|
|
[BizImport(CC)]
|
|
|
|
|
public abstract void biz_soft_reset();
|
|
|
|
|
[BizImport(CC)]
|
2017-05-28 10:39:11 +00:00
|
|
|
|
public abstract void biz_hard_reset();
|
|
|
|
|
[BizImport(CC)]
|
2017-05-28 14:18:20 +00:00
|
|
|
|
public abstract void biz_set_port_devices(LeftPortDevice left, RightPortDevice right);
|
2017-05-21 21:43:43 +00:00
|
|
|
|
[BizImport(CC)]
|
|
|
|
|
public abstract bool biz_load_rom(byte[] data, int size);
|
|
|
|
|
[BizImport(CC)]
|
|
|
|
|
public abstract bool biz_init();
|
|
|
|
|
[BizImport(CC)]
|
|
|
|
|
public abstract bool biz_is_ntsc();
|
2017-05-27 18:32:12 +00:00
|
|
|
|
[BizImport(CC)]
|
2017-05-28 10:39:11 +00:00
|
|
|
|
public abstract void biz_post_load_state();
|
2014-07-28 20:45:21 +00:00
|
|
|
|
}
|
|
|
|
|
}
|