Buildfixes
This commit is contained in:
parent
18c85b5ccd
commit
b8cdaeae72
|
@ -4303,6 +4303,7 @@ bool command_event(enum event_command cmd, void *data)
|
|||
break;
|
||||
#endif
|
||||
case CMD_EVENT_SHUTDOWN:
|
||||
{
|
||||
#if defined(__linux__) && !defined(ANDROID)
|
||||
const char *_msg = msg_hash_to_str(MSG_VALUE_SHUTTING_DOWN);
|
||||
if (settings->bools.config_save_on_exit)
|
||||
|
@ -4316,8 +4317,10 @@ bool command_event(enum event_command cmd, void *data)
|
|||
system("shutdown -P now");
|
||||
#endif /* HAVE_LAKKA */
|
||||
#endif
|
||||
}
|
||||
break;
|
||||
case CMD_EVENT_REBOOT:
|
||||
{
|
||||
#if defined(__linux__) && !defined(ANDROID)
|
||||
const char *_msg = msg_hash_to_str(MSG_VALUE_REBOOTING);
|
||||
if (settings->bools.config_save_on_exit)
|
||||
|
@ -4331,6 +4334,7 @@ bool command_event(enum event_command cmd, void *data)
|
|||
system("shutdown -r now");
|
||||
#endif /* HAVE_LAKKA */
|
||||
#endif
|
||||
}
|
||||
break;
|
||||
case CMD_EVENT_RESUME:
|
||||
#ifdef HAVE_MENU
|
||||
|
|
Loading…
Reference in New Issue