quicknes: support the other included mappers (some aren't enabled by default for whatever reason)

This commit is contained in:
goyuken 2014-01-05 22:32:49 +00:00
parent b85d9d9d91
commit dfda56d8d5
4 changed files with 15 additions and 0 deletions

View File

@ -10,6 +10,11 @@ namespace BizHawk.Emulation.Cores.Consoles.Nintendo.QuickNES
{
public const string dllname = "libquicknes.dll";
/// <summary>
/// setup extra mappers. should be done before anything else
/// </summary>
[DllImport(dllname, CallingConvention = CallingConvention.Cdecl)]
public static extern void qn_setup_mappers();
/// <summary>
/// create a new quicknes context
/// </summary>

View File

@ -9,6 +9,11 @@ namespace BizHawk.Emulation.Cores.Consoles.Nintendo.QuickNES
{
public class QuickNES : IEmulator, IVideoProvider, ISyncSoundProvider
{
static QuickNES()
{
LibQuickNES.qn_setup_mappers();
}
public QuickNES(CoreComm nextComm, byte[] Rom)
{
CoreComm = nextComm;

Binary file not shown.

View File

@ -19,6 +19,11 @@ public:
#define EXPORT extern "C" __declspec(dllexport)
EXPORT void qn_setup_mappers()
{
register_optional_mappers();
}
EXPORT Nes_Emu *qn_new()
{
return new Nes_Emu();