mirror of
https://github.com/libretro/RetroArch
synced 2025-01-29 00:32:49 +00:00
Merge pull request #10964 from Jamiras/cheevos_lboard_zero
(cheevos) allow submission of 0 for leaderboard values
This commit is contained in:
commit
9edd265bf4
@ -999,14 +999,6 @@ static void rcheevos_lboard_submit(rcheevos_lboard_t* lboard)
|
||||
/* Deactivate the leaderboard. */
|
||||
lboard->active = 0;
|
||||
|
||||
/* Failsafe for improper leaderboards. */
|
||||
if (lboard->last_value == 0)
|
||||
{
|
||||
CHEEVOS_ERR(RCHEEVOS_TAG "Leaderboard %s tried to submit 0\n", lboard->info->title);
|
||||
runloop_msg_queue_push("Leaderboard attempt cancelled!", 0, 2 * 60, false, NULL, MESSAGE_QUEUE_ICON_DEFAULT, MESSAGE_QUEUE_CATEGORY_INFO);
|
||||
return;
|
||||
}
|
||||
|
||||
/* Show the OSD message. */
|
||||
rc_format_value(value, sizeof(value), lboard->last_value, lboard->format);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user