mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-08 09:09:04 +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,
|
void AchievementManager::FilterApprovedPatches(std::vector<PatchEngine::Patch>& patches,
|
||||||
const std::string& game_ini_id) const
|
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};
|
std::lock_guard lg{m_lock};
|
||||||
|
|
||||||
if (!IsHardcoreModeActive())
|
if (!IsHardcoreModeActive())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue