Add 'User remote Enable' settings back

This commit is contained in:
twinaphex 2016-07-07 01:52:10 +02:00
parent a2c435ab2c
commit 3113f51102
4 changed files with 14 additions and 2 deletions

View File

@ -1510,6 +1510,10 @@ static const char *menu_hash_to_str_us_label_enum(enum msg_hash_enums msg)
return "stdin_commands";
case MENU_ENUM_LABEL_NETWORK_REMOTE_ENABLE:
return "network_remote_enable";
case MENU_ENUM_LABEL_NETWORK_REMOTE_USER_1_ENABLE:
return "network_remote_user_1_enable";
case MENU_ENUM_LABEL_NETWORK_REMOTE_USER_LAST_ENABLE:
return "network_remote_user_last_enable";
case MENU_ENUM_LABEL_NETWORK_REMOTE_PORT:
return "network_remote_base_port";
case MENU_ENUM_LABEL_VIDEO_DRIVER:

View File

@ -4415,7 +4415,9 @@ bool menu_displaylist_ctl(enum menu_displaylist_ctl_state type, void *data)
unsigned user;
for(user = 0; user < settings->input.max_users; user++)
{
/* TODO - implement stuff from menu_setting.c - line 7547 */
menu_displaylist_parse_settings_enum(menu, info,
MENU_ENUM_LABEL_NETWORK_REMOTE_USER_1_ENABLE + user,
PARSE_ONLY_BOOL, false);
}
}

View File

@ -7564,7 +7564,7 @@ static bool setting_append_list(
general_read_handler,
SD_FLAG_ADVANCED);
settings_data_list_current_add_free_flags(list, list_info, SD_FREE_FLAG_NAME | SD_FREE_FLAG_SHORT);
/* TODO/FIXME - add enum_idx */
menu_settings_list_current_add_enum_idx(list, list_info, MENU_ENUM_LABEL_NETWORK_REMOTE_USER_1_ENABLE + user);
}
CONFIG_BOOL(

View File

@ -22,6 +22,8 @@
#include <retro_common_api.h>
#include "input/input_driver.h"
RETRO_BEGIN_DECLS
enum msg_file_type
@ -1213,6 +1215,10 @@ enum msg_hash_enums
MENU_ENUM_LABEL_NETWORK_REMOTE_PORT,
MENU_ENUM_LABEL_VALUE_NETWORK_REMOTE_PORT,
MENU_ENUM_LABEL_NETWORK_REMOTE_USER_1_ENABLE,
MENU_ENUM_LABEL_NETWORK_REMOTE_USER_LAST_ENABLE = MENU_ENUM_LABEL_NETWORK_REMOTE_USER_1_ENABLE + MAX_USERS,
MENU_ENUM_LABEL_VALUE_STDIN_CMD_ENABLE,
MENU_ENUM_LABEL_VALUE_NETWORK_REMOTE_ENABLE,
MENU_ENUM_LABEL_DETECT_CORE_LIST,