This commit is contained in:
twinaphex 2017-02-28 10:22:06 +01:00
parent aff63e6c3f
commit 2fa9d47b61
1 changed files with 52 additions and 49 deletions

View File

@ -3429,8 +3429,6 @@ finish:
if (lan_hosts)
lan_room_count = lan_hosts->size;
menu_entries_ctl(MENU_ENTRIES_CTL_CLEAR, file_list);
room_data = string_split(buf, "\n");
if (netplay_room_list)
@ -3450,6 +3448,7 @@ finish:
}
#endif
menu_entries_ctl(MENU_ENTRIES_CTL_CLEAR, file_list);
menu_entries_append_enum(file_list,
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NETPLAY_ENABLE_HOST),
msg_hash_to_str(MENU_ENUM_LABEL_NETPLAY_ENABLE_HOST),
@ -3461,6 +3460,8 @@ finish:
MENU_ENUM_LABEL_NETPLAY_REFRESH_ROOMS,
MENU_SETTING_ACTION, 0, 0);
if (netplay_room_count != 0)
{
RARCH_LOG ("Found %d rooms...\n", netplay_room_count);
for (i = 0; i < netplay_room_count; i++)
@ -3507,7 +3508,8 @@ finish:
#endif
j+=8;
snprintf(s, sizeof(s), msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NETPLAY_ROOM_NICKNAME),
snprintf(s, sizeof(s),
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NETPLAY_ROOM_NICKNAME),
netplay_room_list[i].nickname);
menu_entries_append_enum(file_list,
@ -3516,6 +3518,7 @@ finish:
MENU_ENUM_LABEL_CONNECT_NETPLAY_ROOM,
MENU_ROOM, 0, 0);
}
}
if (lan_room_count != 0)
{