mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
AchievementManager: Remove unnecessary .get()
Same behavior, less code.
This commit is contained in:
parent
161efff6c9
commit
394418b415
@ -178,16 +178,13 @@ void AchievementManager::HashGame(const DiscIO::Volume* volume, const ResponseCa
|
||||
return;
|
||||
}
|
||||
// Need to SetDisabled outside a lock because it uses m_lock internally.
|
||||
bool disable = false;
|
||||
bool disable = true;
|
||||
{
|
||||
std::lock_guard lg{m_lock};
|
||||
if (m_loading_volume.get() != nullptr)
|
||||
{
|
||||
disable = true;
|
||||
}
|
||||
else
|
||||
if (!m_loading_volume)
|
||||
{
|
||||
m_loading_volume = DiscIO::CreateVolume(volume->GetBlobReader().CopyReader());
|
||||
disable = false;
|
||||
}
|
||||
}
|
||||
if (disable)
|
||||
|
Loading…
Reference in New Issue
Block a user