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();
|
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)
|
||||||
|
|
|
@ -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();
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue