This commit is contained in:
twinaphex 2015-11-01 11:18:28 +01:00
parent f4f76d9dda
commit 956580c606
3 changed files with 2 additions and 2 deletions

View File

@ -1422,9 +1422,11 @@ bool event_command(enum event_command cmd)
rarch_ctl(RARCH_ACTION_STATE_FORCE_QUIT, NULL);
break;
case EVENT_CMD_SHUTDOWN:
#if defined(__linux__) && !defined(ANDROID)
rarch_main_msg_queue_push("Shutting down...", 1, 180, true);
rarch_ctl(RARCH_ACTION_STATE_FORCE_QUIT, NULL);
system("shutdown -P now");
#endif
break;
case EVENT_CMD_RESUME:
rarch_ctl(RARCH_ACTION_STATE_MENU_RUNNING_FINISHED, NULL);

View File

@ -1710,7 +1710,6 @@ static int action_ok_load_archive_detect_core(const char *path,
if (ret == -1)
action_ok_push_quick_menu();
return ret;
return 0;
case 0:
return generic_action_ok_displaylist_push(path, label, type,
selection, entry_idx, ACTION_OK_DL_DEFERRED_CORE_LIST);

View File

@ -210,7 +210,6 @@ struct string_list *string_list_new_special(enum string_list_type type,
string_list_append(s, opt, attr);
}
break;
break;
case STRING_LIST_CORES_NAMES:
for (i = 0; i < core_info_list_num_info_files(global->core_info.list); i++)
{