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
|
@ -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…
Reference in New Issue