From 82eb392dbf8bf9dbd71b162eb7fa84934e0e401b Mon Sep 17 00:00:00 2001 From: Jamiras Date: Sat, 11 May 2024 19:56:14 -0600 Subject: [PATCH] always have unofficial achievements enabled when using raintegration via rc_client --- src/services/AchievementRuntimeExports.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/services/AchievementRuntimeExports.cpp b/src/services/AchievementRuntimeExports.cpp index ddcd3e14..f9cd4cf7 100644 --- a/src/services/AchievementRuntimeExports.cpp +++ b/src/services/AchievementRuntimeExports.cpp @@ -129,16 +129,15 @@ class AchievementRuntimeExports : private AchievementRuntime return pConfiguration.IsFeatureEnabled(ra::services::Feature::Hardcore); } - static void set_unofficial_enabled(int value) + static void set_unofficial_enabled(int) noexcept { - auto& pClient = ra::services::ServiceLocator::GetMutable(); - rc_client_set_unofficial_enabled(pClient.GetClient(), value); + // do nothing. unofficial achievements should always be available when using the toolkit. } - static int get_unofficial_enabled() + static int get_unofficial_enabled() noexcept { - const auto& pClient = ra::services::ServiceLocator::Get(); - return rc_client_get_unofficial_enabled(pClient.GetClient()); + // unofficial achievements should always be available when using the toolkit. + return true; } static void set_encore_mode_enabled(int value)