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;
|
return;
|
||||||
}
|
}
|
||||||
// Need to SetDisabled outside a lock because it uses m_lock internally.
|
// Need to SetDisabled outside a lock because it uses m_lock internally.
|
||||||
bool disable = false;
|
bool disable = true;
|
||||||
{
|
{
|
||||||
std::lock_guard lg{m_lock};
|
std::lock_guard lg{m_lock};
|
||||||
if (m_loading_volume.get() != nullptr)
|
if (!m_loading_volume)
|
||||||
{
|
|
||||||
disable = true;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
m_loading_volume = DiscIO::CreateVolume(volume->GetBlobReader().CopyReader());
|
m_loading_volume = DiscIO::CreateVolume(volume->GetBlobReader().CopyReader());
|
||||||
|
disable = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (disable)
|
if (disable)
|
||||||
|
Loading…
Reference in New Issue
Block a user