mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 19:20:35 +00:00
display reboot/shutdown message also when not saving config on exit (#16506)
the reboot / shutdown message should be displayed regardless if config file is saved on exit or not.
This commit is contained in:
parent
5e45b2330b
commit
2c96b97324
@ -4364,8 +4364,8 @@ bool command_event(enum event_command cmd, void *data)
|
||||
if (settings->bools.config_save_on_exit)
|
||||
{
|
||||
command_event(CMD_EVENT_MENU_SAVE_CURRENT_CONFIG, NULL);
|
||||
runloop_msg_queue_push(msg_hash_to_str(MSG_VALUE_SHUTTING_DOWN), 1, 180, true, NULL, MESSAGE_QUEUE_ICON_DEFAULT, MESSAGE_QUEUE_CATEGORY_INFO);
|
||||
}
|
||||
runloop_msg_queue_push(msg_hash_to_str(MSG_VALUE_SHUTTING_DOWN), 1, 180, true, NULL, MESSAGE_QUEUE_ICON_DEFAULT, MESSAGE_QUEUE_CATEGORY_INFO);
|
||||
#ifdef HAVE_LAKKA
|
||||
system("nohup /usr/bin/lakka-shutdown.sh 2>&1 >/dev/null & exit");
|
||||
#else
|
||||
@ -4379,8 +4379,8 @@ bool command_event(enum event_command cmd, void *data)
|
||||
if (settings->bools.config_save_on_exit)
|
||||
{
|
||||
command_event(CMD_EVENT_MENU_SAVE_CURRENT_CONFIG, NULL);
|
||||
runloop_msg_queue_push(msg_hash_to_str(MSG_VALUE_REBOOTING), 1, 180, true, NULL, MESSAGE_QUEUE_ICON_DEFAULT, MESSAGE_QUEUE_CATEGORY_INFO);
|
||||
}
|
||||
runloop_msg_queue_push(msg_hash_to_str(MSG_VALUE_REBOOTING), 1, 180, true, NULL, MESSAGE_QUEUE_ICON_DEFAULT, MESSAGE_QUEUE_CATEGORY_INFO);
|
||||
#ifdef HAVE_LAKKA
|
||||
system("nohup /usr/bin/lakka-reboot.sh 2>&1 >/dev/null & exit");
|
||||
#else
|
||||
|
Loading…
x
Reference in New Issue
Block a user