From d5e56c7561013c20cb7667b5a4365b87c63e106c Mon Sep 17 00:00:00 2001 From: radius Date: Fri, 27 Nov 2015 13:37:56 -0500 Subject: [PATCH] fix the settings for each player --- menu/menu_setting.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/menu/menu_setting.c b/menu/menu_setting.c index e5408bbfb0..16c350a1c3 100644 --- a/menu/menu_setting.c +++ b/menu/menu_setting.c @@ -6299,15 +6299,18 @@ static bool setting_append_list_netplay_options( for(int user = 0; user < settings->input.max_users; user++) { - char s[64]; - snprintf(s, sizeof(s), "User %d Remote Enable", user + 1); - RARCH_LOG("s %s\n",s); + char s1[64]; + snprintf(s1, sizeof(s1), "%s_user_p%d", menu_hash_to_str(MENU_LABEL_NETWORK_REMOTE_ENABLE), user + 1); + char s2[64]; + snprintf(s2, sizeof(s2), "User %d Remote Enable", user + 1); + + CONFIG_BOOL( list, list_info, &settings->network_remote_enable_user[user], /* todo: figure out this value, it's working fine but I don't think this is correct */ - menu_hash_to_str(MENU_LABEL_NETWORK_REMOTE_ENABLE) + user + 1, - strdup(s), + strdup(s1), + strdup(s2), "", /* todo: add default */ menu_hash_to_str(MENU_VALUE_OFF), menu_hash_to_str(MENU_VALUE_ON),