DSPHLE: Replace CMailHandler::IsEmpty with CMailHandler::HasPending

This commit is contained in:
Pokechu22 2022-06-08 20:22:20 -07:00
parent c8e716234e
commit b063f15dcc
4 changed files with 7 additions and 7 deletions

View File

@ -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)

View File

@ -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();

View File

@ -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);
}

View File

@ -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);
}