fix oopsie in libgambatte bindings and make gb testrom suite run again (was broken by a858282a8d)

This commit is contained in:
CasualPokePlayer 2022-04-03 19:45:58 -07:00
parent d4bb5e047e
commit c2ea1c6c7b
2 changed files with 2 additions and 2 deletions

View File

@ -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
{

View File

@ -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;