Don't Publish Unofficial Achievements

Check an achievement's category and only request RetroAchievements to award if it is CORE and not UNOFFICIAL.
This commit is contained in:
LillyJadeKatrin 2024-03-03 12:58:20 -05:00
parent 58616a6e4c
commit f556f646a2
1 changed files with 1 additions and 1 deletions

View File

@ -1460,7 +1460,6 @@ void AchievementManager::HandleAchievementTriggeredEvent(const rc_runtime_event_
return;
}
it->second.session_unlock_count++;
m_queue.EmplaceItem([this, event_id] { AwardAchievement(event_id); });
AchievementId game_data_index = it->second.game_data_index;
OSD::AddMessage(fmt::format("Unlocked: {} ({})", m_game_data.achievements[game_data_index].title,
m_game_data.achievements[game_data_index].points),
@ -1471,6 +1470,7 @@ void AchievementManager::HandleAchievementTriggeredEvent(const rc_runtime_event_
nullptr);
if (m_game_data.achievements[game_data_index].category == RC_ACHIEVEMENT_CATEGORY_CORE)
{
m_queue.EmplaceItem([this, event_id] { AwardAchievement(event_id); });
PointSpread spread = TallyScore();
if (spread.hard_points == spread.total_points &&
it->second.remote_unlock_status != UnlockStatus::UnlockType::HARDCORE)