Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #674 from lioncash/loldsp
Core: Get rid of the void handle parameter for DSP initialization
  • Loading branch information
lioncash committed Jul 26, 2014
2 parents 30962ec + e8d0a91 commit 4027363
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 7 deletions.
3 changes: 1 addition & 2 deletions Source/Core/Core/Core.cpp
Expand Up @@ -362,8 +362,7 @@ void EmuThread()

OSD::AddMessage("Dolphin " + g_video_backend->GetName() + " Video Backend.", 5000);

if (!DSP::GetDSPEmulator()->Initialize(g_pWindowHandle,
_CoreParameter.bWii, _CoreParameter.bDSPThread))
if (!DSP::GetDSPEmulator()->Initialize(_CoreParameter.bWii, _CoreParameter.bDSPThread))
{
HW::Shutdown();
g_video_backend->Shutdown();
Expand Down
2 changes: 1 addition & 1 deletion Source/Core/Core/DSPEmulator.h
Expand Up @@ -13,7 +13,7 @@ class DSPEmulator

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 DoState(PointerWrap &p) = 0;
Expand Down
2 changes: 1 addition & 1 deletion Source/Core/Core/HW/DSPHLE/DSPHLE.cpp
Expand Up @@ -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_pUCode = nullptr;
Expand Down
2 changes: 1 addition & 1 deletion Source/Core/Core/HW/DSPHLE/DSPHLE.h
Expand Up @@ -14,7 +14,7 @@ class DSPHLE : public DSPEmulator {
public:
DSPHLE();

virtual bool Initialize(void *hWnd, bool bWii, bool bDSPThread) override;
virtual bool Initialize(bool bWii, bool bDSPThread) override;
virtual void Shutdown() override;
virtual bool IsLLE() override { return false ; }

Expand Down
2 changes: 1 addition & 1 deletion Source/Core/Core/HW/DSPLLE/DSPLLE.cpp
Expand Up @@ -156,7 +156,7 @@ static bool FillDSPInitOptions(DSPInitOptions* opts)
return true;
}

bool DSPLLE::Initialize(void *hWnd, bool bWii, bool bDSPThread)
bool DSPLLE::Initialize(bool bWii, bool bDSPThread)
{
m_bWii = bWii;
m_bDSPThread = bDSPThread;
Expand Down
2 changes: 1 addition & 1 deletion Source/Core/Core/HW/DSPLLE/DSPLLE.h
Expand Up @@ -14,7 +14,7 @@ class DSPLLE : public DSPEmulator
public:
DSPLLE();

virtual bool Initialize(void *hWnd, bool bWii, bool bDSPThread) override;
virtual bool Initialize(bool bWii, bool bDSPThread) override;
virtual void Shutdown() override;
virtual bool IsLLE() override { return true; }

Expand Down

0 comments on commit 4027363

Please sign in to comment.