Some cleanup, extracted XFB convert code into VideoCommon, added non-activated support to gl plugin. + a minor bugfix with no effects seen so far in gl plugin :P

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@209 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
hrydgard
2008-08-14 21:34:39 +00:00
parent 1aedd4891c
commit b4d7ce0197
15 changed files with 196 additions and 212 deletions

View File

@ -36,7 +36,7 @@ CDSPHandler::CDSPHandler()
CDSPHandler::~CDSPHandler()
{
SAFE_DELETE(m_pUCode);
delete m_pUCode;
}
@ -90,13 +90,13 @@ void CDSPHandler::SendMailToDSP(u32 _uMail)
IUCode* CDSPHandler::GetUCode()
{
return(m_pUCode);
return m_pUCode;
}
void CDSPHandler::SetUCode(u32 _crc)
{
SAFE_DELETE(m_pUCode);
delete m_pUCode;
m_MailHandler.Clear();
m_pUCode = UCodeFactory(_crc, m_MailHandler);

View File

@ -33,22 +33,18 @@ class CDSPHandler
IUCode* GetUCode();
void SetUCode(u32 _crc);
CMailHandler& AccessMailHandler() {return(m_MailHandler);}
static CDSPHandler& GetInstance()
{
return(*m_pInstance);
}
static void Destroy()
{
SAFE_DELETE(m_pInstance);
delete m_pInstance;
}
static CDSPHandler& CreateInstance()
{
if (m_pInstance == NULL)
@ -59,7 +55,6 @@ class CDSPHandler
return(*m_pInstance);
}
private:
CDSPHandler();