Skip to content

Commit

Permalink
display reboot/shutdown message also when not saving config on exit (#…
Browse files Browse the repository at this point in the history
…16506)

the reboot / shutdown message should be displayed regardless if config
file is saved on exit or not.
  • Loading branch information
ToKe79 committed May 13, 2024
1 parent 5e45b23 commit 2c96b97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions retroarch.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 2c96b97

Please sign in to comment.