Updated Unofficial and Encore settings to use rc_client

These settings now only are applied at game start and their tooltips have been updated to reflect this.
This commit is contained in:
LillyJadeKatrin
2024-04-03 16:31:18 -04:00
parent 0883aa114e
commit fd0de1b01f
5 changed files with 42 additions and 40 deletions

View File

@ -46,7 +46,6 @@ void AchievementManager::Init()
INFO_LOG_FMT(ACHIEVEMENTS, "{}", message);
});
rc_client_set_hardcore_enabled(m_client, Config::Get(Config::RA_HARDCORE_ENABLED));
rc_client_set_unofficial_enabled(m_client, 1);
m_queue.Reset("AchievementManagerQueue", [](const std::function<void()>& func) { func(); });
m_image_queue.Reset("AchievementManagerImageQueue",
[](const std::function<void()>& func) { func(); });
@ -110,6 +109,8 @@ void AchievementManager::LoadGame(const std::string& file_path, const DiscIO::Vo
"Attempted to load game achievements without achievement client initialized.");
return;
}
rc_client_set_unofficial_enabled(m_client, Config::Get(Config::RA_UNOFFICIAL_ENABLED));
rc_client_set_encore_mode_enabled(m_client, Config::Get(Config::RA_ENCORE_ENABLED));
if (volume)
{
std::lock_guard lg{m_lock};