DSPHLE: Cleanup CARD.{cpp,h}

This commit is contained in:
Pierre Bourdon 2014-03-30 00:31:25 +01:00
parent 85ebffd839
commit 061e3f998a
2 changed files with 7 additions and 7 deletions

View File

@ -9,8 +9,8 @@
#include "Core/HW/DSPHLE/UCodes/UCodes.h"
CARDUCode::CARDUCode(DSPHLE *dsp_hle, u32 crc)
: UCodeInterface(dsp_hle, crc)
CARDUCode::CARDUCode(DSPHLE *dsphle, u32 crc)
: UCodeInterface(dsphle, crc)
{
DEBUG_LOG(DSPHLE, "CARDUCode - initialized");
m_mail_handler.PushMail(DSP_INIT);
@ -37,15 +37,15 @@ u32 CARDUCode::GetUpdateMs()
return SConfig::GetInstance().m_LocalCoreStartupParameter.bWii ? 3 : 5;
}
void CARDUCode::HandleMail(u32 _uMail)
void CARDUCode::HandleMail(u32 mail)
{
if (_uMail == 0xFF000000) // unlock card
if (mail == 0xFF000000) // unlock card
{
// m_Mails.push(0x00000001); // ACK (actually anything != 0)
}
else
{
DEBUG_LOG(DSPHLE, "CARDUCode - unknown command: %x", _uMail);
DEBUG_LOG(DSPHLE, "CARDUCode - unknown command: %x", mail);
}
m_mail_handler.PushMail(DSP_DONE);

View File

@ -9,11 +9,11 @@
class CARDUCode : public UCodeInterface
{
public:
CARDUCode(DSPHLE *dsp_hle, u32 crc);
CARDUCode(DSPHLE *dsphle, u32 crc);
virtual ~CARDUCode();
u32 GetUpdateMs() override;
void HandleMail(u32 _uMail) override;
void HandleMail(u32 mail) override;
void Update(int cycles) override;
};