mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-10-05 07:39:01 +00:00
AchievementManager: Make GetInstance() return a reference
The internal static member will always have a valid lifetime. Makes this consistent with other instance based objects in our code.
This commit is contained in:
parent
d84ed054ee
commit
e55f9ed102
21 changed files with 81 additions and 74 deletions
|
@ -207,7 +207,7 @@ void LoadFromBuffer(std::vector<u8>& buffer)
|
|||
}
|
||||
|
||||
#ifdef USE_RETRO_ACHIEVEMENTS
|
||||
if (AchievementManager::GetInstance()->IsHardcoreModeActive())
|
||||
if (AchievementManager::GetInstance().IsHardcoreModeActive())
|
||||
{
|
||||
OSD::AddMessage("Loading savestates is disabled in RetroAchievements hardcore mode");
|
||||
return;
|
||||
|
@ -853,7 +853,7 @@ void LoadAs(const std::string& filename)
|
|||
}
|
||||
|
||||
#ifdef USE_RETRO_ACHIEVEMENTS
|
||||
if (AchievementManager::GetInstance()->IsHardcoreModeActive())
|
||||
if (AchievementManager::GetInstance().IsHardcoreModeActive())
|
||||
{
|
||||
OSD::AddMessage("Loading savestates is disabled in RetroAchievements hardcore mode");
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue