Revert "Cleanups"

This reverts commit 55efca9b23.
This commit is contained in:
twinaphex 2016-10-01 08:14:03 +02:00
parent 4fe8cf3811
commit 53bd29bfad
1 changed files with 13 additions and 10 deletions

View File

@ -347,12 +347,15 @@ int generic_action_ok_displaylist_push(const char *path,
dl_type = DISPLAYLIST_FILE_BROWSER_SELECT_FILE; dl_type = DISPLAYLIST_FILE_BROWSER_SELECT_FILE;
break; break;
case ACTION_OK_DL_RECORD_CONFIGFILE: case ACTION_OK_DL_RECORD_CONFIGFILE:
menu_displaylist_reset_filebrowser(); {
info.type = type; global_t *global = global_get_ptr();
info.directory_ptr = idx; menu_displaylist_reset_filebrowser();
info_path = dir_get(RARCH_DIR_RECORD_CONFIG); info.type = type;
info_label = label; info.directory_ptr = idx;
dl_type = DISPLAYLIST_FILE_BROWSER_SELECT_FILE; info_path = dir_get(RARCH_DIR_RECORD_CONFIG);
info_label = label;
dl_type = DISPLAYLIST_FILE_BROWSER_SELECT_FILE;
}
break; break;
case ACTION_OK_DL_DISK_IMAGE_APPEND_LIST: case ACTION_OK_DL_DISK_IMAGE_APPEND_LIST:
menu_displaylist_reset_filebrowser(); menu_displaylist_reset_filebrowser();
@ -3268,8 +3271,8 @@ static int action_ok_netplay_enable_host(const char *path,
const char *label, unsigned type, size_t idx, size_t entry_idx) const char *label, unsigned type, size_t idx, size_t entry_idx)
{ {
#ifdef HAVE_NETWORKING #ifdef HAVE_NETWORKING
bool netplay_was_on = false; bool netplay_was_on = false;
global_t *global = global_get_ptr(); global_t *global = global_get_ptr();
global->netplay.enable = true; global->netplay.enable = true;
@ -3323,8 +3326,8 @@ static int action_ok_netplay_enable_client(const char *path,
const char *label, unsigned type, size_t idx, size_t entry_idx) const char *label, unsigned type, size_t idx, size_t entry_idx)
{ {
#ifdef HAVE_NETWORKING #ifdef HAVE_NETWORKING
bool netplay_was_on = false; bool netplay_was_on = false;
global_t *global = global_get_ptr(); global_t *global = global_get_ptr();
global->netplay.enable = true; global->netplay.enable = true;