diff options
| author | skidau <skidau@gmail.com> | 2014-11-01 13:57:24 +1100 |
|---|---|---|
| committer | skidau <skidau@gmail.com> | 2014-11-05 17:42:42 +1100 |
| commit | baaccfd2f07dba0584b9391ce4ad5015e95d0081 (patch) | |
| tree | c223bac7e9bae0e811a221b5eaf49b729e8e25b4 /Source/Core | |
| parent | 5c862adfa71b246612612edb2cf1439515538c8a (diff) | |
Take into account the want_determinism option and do not create a DSP thread if determinism is needed.
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/Core/HW/DSPLLE/DSPLLE.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/Core/Core/HW/DSPLLE/DSPLLE.cpp b/Source/Core/Core/HW/DSPLLE/DSPLLE.cpp index 2d245348a9..ee3e2bcb9b 100644 --- a/Source/Core/Core/HW/DSPLLE/DSPLLE.cpp +++ b/Source/Core/Core/HW/DSPLLE/DSPLLE.cpp @@ -162,7 +162,9 @@ static bool FillDSPInitOptions(DSPInitOptions* opts) bool DSPLLE::Initialize(bool bWii, bool bDSPThread) { m_bWii = bWii; - m_bDSPThread = bDSPThread; + m_bDSPThread = true; + if (NetPlay::IsNetPlayRunning() || Movie::IsMovieActive() || Core::g_want_determinism || !bDSPThread) + m_bDSPThread = false; requestDisableThread = false; DSPInitOptions opts; @@ -317,7 +319,7 @@ void DSPLLE::DSP_Update(int cycles) */ if (m_bDSPThread) { - if (requestDisableThread || NetPlay::IsNetPlayRunning() || Movie::IsMovieActive()) + if (requestDisableThread || NetPlay::IsNetPlayRunning() || Movie::IsMovieActive() || Core::g_want_determinism) { DSP_StopSoundStream(); m_bDSPThread = false; |
