mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-24 08:30:16 +00:00
add retroarch version to lan announcement
This commit is contained in:
parent
32525ea0d3
commit
84e0251a86
@ -3786,6 +3786,9 @@ static void netplay_refresh_rooms_cb(void *task_data, void *user_data, const cha
|
||||
strlcpy(netplay_room_list[i].corename,
|
||||
host->core,
|
||||
sizeof(netplay_room_list[i].corename));
|
||||
strlcpy(netplay_room_list[i].retroarchversion,
|
||||
host->retroarch_version,
|
||||
sizeof(netplay_room_list[i].retroarchversion));
|
||||
strlcpy(netplay_room_list[i].coreversion,
|
||||
host->core_version,
|
||||
sizeof(netplay_room_list[i].coreversion));
|
||||
|
@ -397,6 +397,8 @@ static bool netplay_lan_ad_client(void)
|
||||
|
||||
strlcpy(host->nick, ad_packet_buffer.nick, NETPLAY_HOST_STR_LEN);
|
||||
strlcpy(host->core, ad_packet_buffer.core, NETPLAY_HOST_STR_LEN);
|
||||
strlcpy(host->retroarch_version, ad_packet_buffer.retroarch_version,
|
||||
NETPLAY_HOST_STR_LEN);
|
||||
strlcpy(host->core_version, ad_packet_buffer.core_version,
|
||||
NETPLAY_HOST_STR_LEN);
|
||||
strlcpy(host->content, ad_packet_buffer.content,
|
||||
|
@ -39,6 +39,7 @@ struct netplay_host
|
||||
char nick[NETPLAY_HOST_STR_LEN];
|
||||
char core[NETPLAY_HOST_STR_LEN];
|
||||
char core_version[NETPLAY_HOST_STR_LEN];
|
||||
char retroarch_version[NETPLAY_HOST_STR_LEN];
|
||||
char content[NETPLAY_HOST_LONGSTR_LEN];
|
||||
int content_crc;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user