cheevos: do not show "0 of 0 cheevos unlocked" msg
**This will happen only if `cheevos_verbose_enable = true`.** When loading a game tha doesn't have any achievement, instead of showing an OSD message saying "You have 0 of 0 achievements unlocked." just say "This game doesn't have any achievement." I've just added an `if(cheevos_locals.core.count > 0)` and added indentation. The diff makes it look like it got more changes than it actually got.
This commit is contained in:
parent
d5f950a624
commit
8e0ee72283
|
@ -2829,6 +2829,8 @@ static int cheevos_iterate(coro_t* coro)
|
||||||
CORO_GOSUB(PLAYING);
|
CORO_GOSUB(PLAYING);
|
||||||
|
|
||||||
if(CHEEVOS_VAR_SETTINGS->bools.cheevos_verbose_enable)
|
if(CHEEVOS_VAR_SETTINGS->bools.cheevos_verbose_enable)
|
||||||
|
{
|
||||||
|
if(cheevos_locals.core.count > 0)
|
||||||
{
|
{
|
||||||
const cheevo_t* cheevo = cheevos_locals.core.cheevos;
|
const cheevo_t* cheevo = cheevos_locals.core.cheevos;
|
||||||
const cheevo_t* end = cheevo + cheevos_locals.core.count;
|
const cheevo_t* end = cheevo + cheevos_locals.core.count;
|
||||||
|
@ -2850,6 +2852,10 @@ static int cheevos_iterate(coro_t* coro)
|
||||||
msg[sizeof(msg) - 1] = 0;
|
msg[sizeof(msg) - 1] = 0;
|
||||||
runloop_msg_queue_push(msg, 0, 6 * 60, false);
|
runloop_msg_queue_push(msg, 0, 6 * 60, false);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
runloop_msg_queue_push("This game doesn't have any achievement.", 0, 5 * 60, false);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
CORO_STOP();
|
CORO_STOP();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue