diff --git a/Source/Core/Core/HW/DSPHLE/MailHandler.cpp b/Source/Core/Core/HW/DSPHLE/MailHandler.cpp index ce6b8f8a1a..46019abc6f 100644 --- a/Source/Core/Core/HW/DSPHLE/MailHandler.cpp +++ b/Source/Core/Core/HW/DSPHLE/MailHandler.cpp @@ -75,9 +75,9 @@ void CMailHandler::Clear() m_Mails.pop(); } -bool CMailHandler::IsEmpty() const +bool CMailHandler::HasPending() const { - return m_Mails.empty(); + return !m_Mails.empty(); } void CMailHandler::Halt(bool _Halt) diff --git a/Source/Core/Core/HW/DSPHLE/MailHandler.h b/Source/Core/Core/HW/DSPHLE/MailHandler.h index e5afbc9869..773cf042bb 100644 --- a/Source/Core/Core/HW/DSPHLE/MailHandler.h +++ b/Source/Core/Core/HW/DSPHLE/MailHandler.h @@ -23,7 +23,7 @@ public: void Clear(); void Halt(bool _Halt); void DoState(PointerWrap& p); - bool IsEmpty() const; + bool HasPending() const; u16 ReadDSPMailboxHigh(); u16 ReadDSPMailboxLow(); diff --git a/Source/Core/Core/HW/DSPHLE/UCodes/CARD.cpp b/Source/Core/Core/HW/DSPHLE/UCodes/CARD.cpp index bf8da5db10..23ee74bec8 100644 --- a/Source/Core/Core/HW/DSPHLE/UCodes/CARD.cpp +++ b/Source/Core/Core/HW/DSPHLE/UCodes/CARD.cpp @@ -28,8 +28,8 @@ void CARDUCode::Initialize() void CARDUCode::Update() { - // check if we have to sent something - if (!m_mail_handler.IsEmpty()) + // check if we have something to send + if (m_mail_handler.HasPending()) { DSP::GenerateDSPInterruptFromDSPEmu(DSP::INT_DSP); } diff --git a/Source/Core/Core/HW/DSPHLE/UCodes/GBA.cpp b/Source/Core/Core/HW/DSPHLE/UCodes/GBA.cpp index 6704a489ec..49816fe6fd 100644 --- a/Source/Core/Core/HW/DSPHLE/UCodes/GBA.cpp +++ b/Source/Core/Core/HW/DSPHLE/UCodes/GBA.cpp @@ -85,8 +85,8 @@ void GBAUCode::Initialize() void GBAUCode::Update() { - // check if we have to send something - if (!m_mail_handler.IsEmpty()) + // check if we have something to send + if (m_mail_handler.HasPending()) { DSP::GenerateDSPInterruptFromDSPEmu(DSP::INT_DSP); }