Skip to content

Commit

Permalink
always have unofficial achievements enabled when using raintegration …
Browse files Browse the repository at this point in the history
…via rc_client
  • Loading branch information
Jamiras committed May 12, 2024
1 parent a67701e commit 82eb392
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/services/AchievementRuntimeExports.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<ra::services::AchievementRuntime>();
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<ra::services::AchievementRuntime>();
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)
Expand Down

0 comments on commit 82eb392

Please sign in to comment.