Merge pull request #5982 from celerizer/master

Fix unofficial achievements not being loaded
This commit is contained in:
Twinaphex 2017-12-29 00:55:57 +01:00 committed by GitHub
commit e6462de5be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3131,9 +3131,10 @@ static int cheevos_iterate(coro_t* coro)
CORO_GOSUB(LOGIN); CORO_GOSUB(LOGIN);
snprintf(CHEEVOS_VAR_URL, sizeof(CHEEVOS_VAR_URL), snprintf(CHEEVOS_VAR_URL, sizeof(CHEEVOS_VAR_URL),
"http://retroachievements.org/dorequest.php?r=patch&u=%s&g=%u&f=3&l=1&t=%s", "http://retroachievements.org/dorequest.php?r=patch&u=%s&g=%u&f=%u&l=1&t=%s",
CHEEVOS_VAR_SETTINGS->arrays.cheevos_username, CHEEVOS_VAR_SETTINGS->arrays.cheevos_username,
CHEEVOS_VAR_GAMEID, cheevos_locals.token); CHEEVOS_VAR_GAMEID, CHEEVOS_VAR_SETTINGS->bools.cheevos_test_unofficial ? 0:3,
cheevos_locals.token);
CHEEVOS_VAR_URL[sizeof(CHEEVOS_VAR_URL) - 1] = 0; CHEEVOS_VAR_URL[sizeof(CHEEVOS_VAR_URL) - 1] = 0;