Merge pull request #13205 from Jamiras/cheevos_hide_unofficial

(cheevos) ignore unofficial achievements unless setting is enabled
This commit is contained in:
Autechre 2021-11-08 16:37:19 +01:00 committed by GitHub
commit d651c9ae02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -720,15 +720,16 @@ static void rcheevos_client_copy_achievements(
if (definition->category != 3)
{
achievement->active = RCHEEVOS_ACTIVE_UNOFFICIAL;
if (!settings->bools.cheevos_test_unofficial)
continue;
if (settings->bools.cheevos_test_unofficial)
achievement->active |= RCHEEVOS_ACTIVE_SOFTCORE
| RCHEEVOS_ACTIVE_HARDCORE;
achievement->active = RCHEEVOS_ACTIVE_UNOFFICIAL
| RCHEEVOS_ACTIVE_SOFTCORE
| RCHEEVOS_ACTIVE_HARDCORE;
}
else
{
achievement->active = RCHEEVOS_ACTIVE_SOFTCORE
achievement->active = RCHEEVOS_ACTIVE_SOFTCORE
| RCHEEVOS_ACTIVE_HARDCORE;
for (j = 0; j <