From dc7111f5efb70d77105b73adb12718bd3fb45d58 Mon Sep 17 00:00:00 2001 From: NKR0ne Date: Sat, 25 Jul 2026 08:40:27 -0400 Subject: [PATCH] erreula: fix inverted IsDecideSelectLeft/RightButtonError Both functions returned != where == was meant, so each reported true for every selection except the one it was asking about, and both returned true when no button had been selected at all (BUTTON_SELECTION::NONE). IsDecideSelectButtonError directly above uses != correctly, since it asks whether any button was selected, which is presumably where this came from. Co-Authored-By: Claude Opus 5 --- src/Cafe/OS/libs/erreula/erreula.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Cafe/OS/libs/erreula/erreula.cpp b/src/Cafe/OS/libs/erreula/erreula.cpp index d9b4d49f..84c42d7d 100644 --- a/src/Cafe/OS/libs/erreula/erreula.cpp +++ b/src/Cafe/OS/libs/erreula/erreula.cpp @@ -152,12 +152,12 @@ namespace erreula bool IsDecideSelectLeftButtonError() const { - return m_buttonSelection != BUTTON_SELECTION::LEFT; + return m_buttonSelection == BUTTON_SELECTION::LEFT; } bool IsDecideSelectRightButtonError() const { - return m_buttonSelection != BUTTON_SELECTION::RIGHT; + return m_buttonSelection == BUTTON_SELECTION::RIGHT; } void SetButtonSelection(BUTTON_SELECTION selection)