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(); m_Mails.pop();
} }
bool CMailHandler::IsEmpty() const bool CMailHandler::HasPending() const
{ {
return m_Mails.empty(); return !m_Mails.empty();
} }
void CMailHandler::Halt(bool _Halt) void CMailHandler::Halt(bool _Halt)

View File

@ -23,7 +23,7 @@ public:
void Clear(); void Clear();
void Halt(bool _Halt); void Halt(bool _Halt);
void DoState(PointerWrap& p); void DoState(PointerWrap& p);
bool IsEmpty() const; bool HasPending() const;
u16 ReadDSPMailboxHigh(); u16 ReadDSPMailboxHigh();
u16 ReadDSPMailboxLow(); u16 ReadDSPMailboxLow();

View File

@ -28,8 +28,8 @@ void CARDUCode::Initialize()
void CARDUCode::Update() void CARDUCode::Update()
{ {
// check if we have to sent something // check if we have something to send
if (!m_mail_handler.IsEmpty()) if (m_mail_handler.HasPending())
{ {
DSP::GenerateDSPInterruptFromDSPEmu(DSP::INT_DSP); DSP::GenerateDSPInterruptFromDSPEmu(DSP::INT_DSP);
} }

View File

@ -85,8 +85,8 @@ void GBAUCode::Initialize()
void GBAUCode::Update() void GBAUCode::Update()
{ {
// check if we have to send something // check if we have something to send
if (!m_mail_handler.IsEmpty()) if (m_mail_handler.HasPending())
{ {
DSP::GenerateDSPInterruptFromDSPEmu(DSP::INT_DSP); DSP::GenerateDSPInterruptFromDSPEmu(DSP::INT_DSP);
} }