Core: Get rid of the void handle parameter for DSP initialization
This commit is contained in:
parent
6bd5fb3a67
commit
e8d0a910da
|
@ -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();
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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 ; }
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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; }
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue