Skip to content

Commit

Permalink
Add missing syncsetting check to Gameboy.FrameAdvancePrep (Gambatte)
Browse files Browse the repository at this point in the history
see #4057
  • Loading branch information
YoshiRulz committed Sep 28, 2024
1 parent 444d1b2 commit 9a440d0
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,9 @@ internal void FrameAdvancePrep(IController controller)

CurrentButtons = (LibGambatte.Buttons)b;

RemoteCommand = (byte)controller.AxisValue("Remote Command");
RemoteCommand = _syncSettings.EnableRemote
? (byte) controller.AxisValue("Remote Command")
: default(byte);

// the controller callback will set this to false if it actually gets called during the frame
IsLagFrame = true;
Expand Down

0 comments on commit 9a440d0

Please sign in to comment.