Merge pull request #13213 from JosJuice/remove-filter-patches-lock

Core: Remove redundant lock for FilterApprovedPatches call
This commit is contained in:
JosJuice 2025-01-27 20:15:00 +01:00 committed by GitHub
commit d117614c00
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 4 deletions

View File

@ -183,10 +183,7 @@ void LoadPatches()
LoadPatchSection("OnFrame", &s_on_frame, globalIni, localIni);
#ifdef USE_RETRO_ACHIEVEMENTS
{
std::lock_guard lg{AchievementManager::GetInstance().GetLock()};
AchievementManager::GetInstance().FilterApprovedPatches(s_on_frame, sconfig.GetGameID());
}
AchievementManager::GetInstance().FilterApprovedPatches(s_on_frame, sconfig.GetGameID());
#endif // USE_RETRO_ACHIEVEMENTS
// Check if I'm syncing Codes