mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 06:44:27 +00:00
Simplify menu_dialog.c
This commit is contained in:
parent
f6ec61b15c
commit
ab2ee3c690
@ -66,7 +66,7 @@ int menu_dialog_iterate(char *s, size_t len, const char *label)
|
|||||||
MENU_ENUM_LABEL_WELCOME_TO_RETROARCH,
|
MENU_ENUM_LABEL_WELCOME_TO_RETROARCH,
|
||||||
s, len);
|
s, len);
|
||||||
|
|
||||||
if (rarch_timer_has_expired(&timer))
|
if (!timer.timer_end && rarch_timer_has_expired(&timer))
|
||||||
{
|
{
|
||||||
rarch_timer_end(&timer);
|
rarch_timer_end(&timer);
|
||||||
do_exit = true;
|
do_exit = true;
|
||||||
|
@ -165,9 +165,7 @@ bool rarch_timer_is_running(rarch_timer_t *timer)
|
|||||||
|
|
||||||
bool rarch_timer_has_expired(rarch_timer_t *timer)
|
bool rarch_timer_has_expired(rarch_timer_t *timer)
|
||||||
{
|
{
|
||||||
if (!timer)
|
if (!timer || timer->timeout <= 0)
|
||||||
return true;
|
|
||||||
if (!timer->timer_end && timer->timeout <= 0)
|
|
||||||
return true;
|
return true;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user