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