Skip to content

Commit

Permalink
Merge pull request #11997 from Dentomologist/dspemulator_remove_pause…
Browse files Browse the repository at this point in the history
…andlock_parameter

DSPEmulator: Remove unused PauseAndLock parameter
  • Loading branch information
AdmiralCurtiss committed Jun 30, 2023
2 parents 94f3426 + ee684b0 commit e71f42f
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Source/Core/Core/Core.cpp
Expand Up @@ -812,7 +812,7 @@ static bool PauseAndLock(Core::System& system, bool do_lock, bool unpause_on_unl
system.GetExpansionInterface().PauseAndLock(do_lock, false);

// audio has to come after CPU, because CPU thread can wait for audio thread (m_throttle).
system.GetDSP().GetDSPEmulator()->PauseAndLock(do_lock, false);
system.GetDSP().GetDSPEmulator()->PauseAndLock(do_lock);

// video has to come after CPU, because CPU thread can wait for video thread
// (s_efbAccessRequested).
Expand Down
2 changes: 1 addition & 1 deletion Source/Core/Core/DSPEmulator.h
Expand Up @@ -18,7 +18,7 @@ class DSPEmulator
virtual void Shutdown() = 0;

virtual void DoState(PointerWrap& p) = 0;
virtual void PauseAndLock(bool do_lock, bool unpause_on_unlock = true) = 0;
virtual void PauseAndLock(bool do_lock) = 0;

virtual void DSP_WriteMailBoxHigh(bool cpu_mailbox, u16 value) = 0;
virtual void DSP_WriteMailBoxLow(bool cpu_mailbox, u16 value) = 0;
Expand Down
2 changes: 1 addition & 1 deletion Source/Core/Core/HW/DSPHLE/DSPHLE.cpp
Expand Up @@ -240,7 +240,7 @@ u16 DSPHLE::DSP_ReadControlRegister()
return m_dsp_control.Hex;
}

void DSPHLE::PauseAndLock(bool do_lock, bool unpause_on_unlock)
void DSPHLE::PauseAndLock(bool do_lock)
{
}
} // namespace DSP::HLE
2 changes: 1 addition & 1 deletion Source/Core/Core/HW/DSPHLE/DSPHLE.h
Expand Up @@ -26,7 +26,7 @@ class DSPHLE : public DSPEmulator
void Shutdown() override;
bool IsLLE() const override { return false; }
void DoState(PointerWrap& p) override;
void PauseAndLock(bool do_lock, bool unpause_on_unlock = true) override;
void PauseAndLock(bool do_lock) override;

void DSP_WriteMailBoxHigh(bool cpu_mailbox, u16 value) override;
void DSP_WriteMailBoxLow(bool cpu_mailbox, u16 value) override;
Expand Down
2 changes: 1 addition & 1 deletion Source/Core/Core/HW/DSPLLE/DSPLLE.cpp
Expand Up @@ -288,7 +288,7 @@ u32 DSPLLE::DSP_UpdateRate()
return 12600; // TO BE TWEAKED
}

void DSPLLE::PauseAndLock(bool do_lock, bool unpause_on_unlock)
void DSPLLE::PauseAndLock(bool do_lock)
{
if (do_lock)
{
Expand Down
2 changes: 1 addition & 1 deletion Source/Core/Core/HW/DSPLLE/DSPLLE.h
Expand Up @@ -26,7 +26,7 @@ class DSPLLE : public DSPEmulator
void Shutdown() override;
bool IsLLE() const override { return true; }
void DoState(PointerWrap& p) override;
void PauseAndLock(bool do_lock, bool unpause_on_unlock = true) override;
void PauseAndLock(bool do_lock) override;

void DSP_WriteMailBoxHigh(bool cpu_mailbox, u16 value) override;
void DSP_WriteMailBoxLow(bool cpu_mailbox, u16 value) override;
Expand Down

0 comments on commit e71f42f

Please sign in to comment.