Core: Get rid of the void handle parameter for DSP initialization

This commit is contained in:
Lioncash 2014-07-26 16:54:36 -04:00
parent 6bd5fb3a67
commit e8d0a910da
6 changed files with 6 additions and 7 deletions

View File

@ -362,8 +362,7 @@ void EmuThread()
OSD::AddMessage("Dolphin " + g_video_backend->GetName() + " Video Backend.", 5000); OSD::AddMessage("Dolphin " + g_video_backend->GetName() + " Video Backend.", 5000);
if (!DSP::GetDSPEmulator()->Initialize(g_pWindowHandle, if (!DSP::GetDSPEmulator()->Initialize(_CoreParameter.bWii, _CoreParameter.bDSPThread))
_CoreParameter.bWii, _CoreParameter.bDSPThread))
{ {
HW::Shutdown(); HW::Shutdown();
g_video_backend->Shutdown(); g_video_backend->Shutdown();

View File

@ -13,7 +13,7 @@ public:
virtual bool IsLLE() = 0; virtual bool IsLLE() = 0;
virtual bool Initialize(void *hWnd, bool bWii, bool bDSPThread) = 0; virtual bool Initialize(bool bWii, bool bDSPThread) = 0;
virtual void Shutdown() = 0; virtual void Shutdown() = 0;
virtual void DoState(PointerWrap &p) = 0; virtual void DoState(PointerWrap &p) = 0;

View File

@ -39,7 +39,7 @@ struct DSPState
} }
}; };
bool DSPHLE::Initialize(void *hWnd, bool bWii, bool bDSPThread) bool DSPHLE::Initialize(bool bWii, bool bDSPThread)
{ {
m_bWii = bWii; m_bWii = bWii;
m_pUCode = nullptr; m_pUCode = nullptr;

View File

@ -14,7 +14,7 @@ class DSPHLE : public DSPEmulator {
public: public:
DSPHLE(); DSPHLE();
virtual bool Initialize(void *hWnd, bool bWii, bool bDSPThread) override; virtual bool Initialize(bool bWii, bool bDSPThread) override;
virtual void Shutdown() override; virtual void Shutdown() override;
virtual bool IsLLE() override { return false ; } virtual bool IsLLE() override { return false ; }

View File

@ -156,7 +156,7 @@ static bool FillDSPInitOptions(DSPInitOptions* opts)
return true; return true;
} }
bool DSPLLE::Initialize(void *hWnd, bool bWii, bool bDSPThread) bool DSPLLE::Initialize(bool bWii, bool bDSPThread)
{ {
m_bWii = bWii; m_bWii = bWii;
m_bDSPThread = bDSPThread; m_bDSPThread = bDSPThread;

View File

@ -14,7 +14,7 @@ class DSPLLE : public DSPEmulator
public: public:
DSPLLE(); DSPLLE();
virtual bool Initialize(void *hWnd, bool bWii, bool bDSPThread) override; virtual bool Initialize(bool bWii, bool bDSPThread) override;
virtual void Shutdown() override; virtual void Shutdown() override;
virtual bool IsLLE() override { return true; } virtual bool IsLLE() override { return true; }