DSPHLE: Replace CMailHandler::IsEmpty with CMailHandler::HasPending
This commit is contained in:
parent
c8e716234e
commit
b063f15dcc
|
@ -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)
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue