mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-20 11:35:54 +00:00
RetroAchievements: Skip LoadApprovedList if there are no patches
There being no active patches is by far the most common case, so let's optimize for this case.
This commit is contained in:
parent
f59678842b
commit
e6b9091ffc
1 changed files with 6 additions and 0 deletions
|
@ -361,6 +361,12 @@ bool AchievementManager::IsHardcoreModeActive() const
|
|||
void AchievementManager::FilterApprovedPatches(std::vector<PatchEngine::Patch>& patches,
|
||||
const std::string& game_ini_id) const
|
||||
{
|
||||
if (patches.empty())
|
||||
{
|
||||
// There's nothing to verify, so let's save ourselves some work
|
||||
return;
|
||||
}
|
||||
|
||||
std::lock_guard lg{m_lock};
|
||||
|
||||
if (!IsHardcoreModeActive())
|
||||
|
|
Loading…
Add table
Reference in a new issue