fix stella frame_advance function declaration

This commit is contained in:
Morilli 2025-03-18 16:03:30 +01:00
parent 0e9c21e7d3
commit 24a82551b9
2 changed files with 3 additions and 3 deletions

View File

@ -28,7 +28,7 @@ namespace BizHawk.Emulation.Cores.Atari.Stella
[In] InitSettings settings);
[BizImport(CallingConvention.Cdecl)]
public abstract void stella_frame_advance(int port1, int port2, bool reset, bool power, bool leftDiffToggled, bool rightDiffToggled);
public abstract void stella_frame_advance(byte port1, byte port2, bool reset, bool power, bool leftDiffToggled, bool rightDiffToggled);
[BizImport(CallingConvention.Cdecl)]
public abstract void stella_get_video(out int w, out int h, out int pitch, ref IntPtr buffer);

View File

@ -13,8 +13,8 @@ namespace BizHawk.Emulation.Cores.Atari.Stella
public bool FrameAdvance(IController controller, bool render, bool renderSound)
{
int port1 = _controllerDeck.ReadPort1(controller);
int port2 = _controllerDeck.ReadPort2(controller);
byte port1 = _controllerDeck.ReadPort1(controller);
byte port2 = _controllerDeck.ReadPort2(controller);
// Handle all the console controls here
bool powerPressed = false;