From b5ae0c336e449cb0db89f2f78cd2ef1043e109b7 Mon Sep 17 00:00:00 2001 From: Maufeat Date: Mon, 10 Nov 2025 13:53:36 +0100 Subject: [PATCH] fix ups --- src/core/hle/service/am/button_poller.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/core/hle/service/am/button_poller.cpp b/src/core/hle/service/am/button_poller.cpp index 75b1f2ca0e..2bf1ac397c 100644 --- a/src/core/hle/service/am/button_poller.cpp +++ b/src/core/hle/service/am/button_poller.cpp @@ -101,7 +101,8 @@ void ButtonPoller::OnButtonStateChanged() { } // Buttons released which were previously held - if (!home_button && m_home_button_press_start) { (!m_home_button_long_sent) { + if (!home_button && m_home_button_press_start) { + if(!m_home_button_long_sent) { const auto duration = ClassifyPressDuration(*m_home_button_press_start); m_window_system.OnSystemButtonPress( duration == ButtonPressDuration::ShortPressing ? SystemButtonType::HomeButtonShortPressing @@ -128,7 +129,7 @@ void ButtonPoller::OnButtonStateChanged() { void ButtonPoller::ThreadLoop() { using namespace std::chrono_literals; - std::unique_lock lk{m_mutex}; + std::unique_lock lk{m_mutex}; while (!m_stop) { m_cv.wait_for(lk, 50ms); if (m_stop) break;