mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-20 19:44:57 +00:00
Merge pull request #12404 from lioncash/guard
CheatSearchWidget: Make use of CPUThreadGuard parameter in UpdateTableRows()
This commit is contained in:
commit
8c99198251
1 changed files with 2 additions and 7 deletions
|
@ -388,15 +388,10 @@ bool CheatSearchWidget::UpdateTableRows(const Core::CPUThreadGuard& guard, const
|
|||
{
|
||||
const bool update_status_text = source == UpdateSource::User;
|
||||
|
||||
std::unique_ptr<Cheats::CheatSearchSessionBase> tmp =
|
||||
m_session->ClonePartial(begin_index, end_index);
|
||||
auto tmp = m_session->ClonePartial(begin_index, end_index);
|
||||
tmp->SetFilterType(Cheats::FilterType::DoNotFilter);
|
||||
|
||||
const Cheats::SearchErrorCode error_code = [&tmp] {
|
||||
Core::CPUThreadGuard guard(Core::System::GetInstance());
|
||||
return tmp->RunSearch(guard);
|
||||
}();
|
||||
|
||||
const Cheats::SearchErrorCode error_code = tmp->RunSearch(guard);
|
||||
if (error_code != Cheats::SearchErrorCode::Success)
|
||||
{
|
||||
if (update_status_text)
|
||||
|
|
Loading…
Add table
Reference in a new issue