From 0c46205ba7860822ecfb2b8e8ad17a38163868c0 Mon Sep 17 00:00:00 2001 From: JosJuice Date: Sat, 7 Dec 2024 19:05:10 +0100 Subject: [PATCH] Core: Remove redundant lock for FilterApprovedPatches call This was necessary before we added locking inside FilterApprovedPatches, but not anymore. --- Source/Core/Core/PatchEngine.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Source/Core/Core/PatchEngine.cpp b/Source/Core/Core/PatchEngine.cpp index e350f1e063..0a46a60051 100644 --- a/Source/Core/Core/PatchEngine.cpp +++ b/Source/Core/Core/PatchEngine.cpp @@ -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