fix oopsie in libgambatte bindings and make gb testrom suite run again (was broken by a858282a8d
)
This commit is contained in:
parent
d4bb5e047e
commit
c2ea1c6c7b
|
@ -515,7 +515,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.Gameboy
|
|||
/// <param name="addr">address for memory type</param>
|
||||
/// <param name="bank">bank to set</param>
|
||||
[DllImport("libgambatte", CallingConvention = CallingConvention.Cdecl)]
|
||||
public static extern void gambatte_setbank(IntPtr core, ushort addr, int bank);
|
||||
public static extern void gambatte_setaddrbank(IntPtr core, ushort addr, int bank);
|
||||
|
||||
public enum BankType : int
|
||||
{
|
||||
|
|
|
@ -238,7 +238,7 @@ namespace BizHawk.Tests.Testroms.GB
|
|||
}
|
||||
|
||||
public Bitmap Screenshot()
|
||||
=> _dispMan.RenderVideoProvider(_coreAsVP).ToSysdrawingBitmap();
|
||||
=> new BitmapBuffer(_coreAsVP.BufferWidth, _coreAsVP.BufferHeight, _coreAsVP.GetVideoBuffer().ToArray()).ToSysdrawingBitmap();
|
||||
|
||||
public void SetButton(string buttonName)
|
||||
=> _controller[buttonName] = true;
|
||||
|
|
Loading…
Reference in New Issue