From c84914ac835a77dddc0a22518b6fa6be896eafb6 Mon Sep 17 00:00:00 2001 From: Morilli <35152647+Morilli@users.noreply.github.com> Date: Sun, 22 Jun 2025 20:17:07 +0200 Subject: [PATCH] fix spellcraft broke in previous commit probably by random chance; this is probably more correct anyways --- bsnes/sfc/cpu/timing.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bsnes/sfc/cpu/timing.cpp b/bsnes/sfc/cpu/timing.cpp index ce9ad1b4..6153d0d5 100644 --- a/bsnes/sfc/cpu/timing.cpp +++ b/bsnes/sfc/cpu/timing.cpp @@ -238,7 +238,7 @@ auto CPU::joypadEdge() -> void { return; } - if(status.autoJoypadCounter >= 2 && !(status.autoJoypadCounter & 1)) { + if(status.autoJoypadCounter >= 2 && (status.autoJoypadCounter & 1)) { //sixteen bits are shifted into joy{1-4}, one bit per 256 clocks uint2 port0 = controllerPort1.device->data(); uint2 port1 = controllerPort2.device->data();