mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 19:20:35 +00:00
add frontend name to netplay announce
This commit is contained in:
parent
4c38ac9bae
commit
3991f9b316
@ -613,9 +613,12 @@ static void netplay_announce(void)
|
||||
char *corename = NULL;
|
||||
char *gamename = NULL;
|
||||
char *coreversion = NULL;
|
||||
char *frontend_ident = NULL;
|
||||
settings_t *settings = config_get_ptr();
|
||||
rarch_system_info_t *system = runloop_get_system_info();
|
||||
uint32_t content_crc = content_get_crc();
|
||||
const frontend_ctx_driver_t
|
||||
*frontend = frontend_get_ptr();
|
||||
|
||||
net_http_urlencode_full(&username, settings->paths.username);
|
||||
net_http_urlencode_full(&corename, system->info.library_name);
|
||||
@ -623,18 +626,19 @@ static void netplay_announce(void)
|
||||
!string_is_empty(path_basename(path_get(RARCH_PATH_BASENAME))) ?
|
||||
path_basename(path_get(RARCH_PATH_BASENAME)) : "N/A");
|
||||
net_http_urlencode_full(&coreversion, system->info.library_version);
|
||||
net_http_urlencode_full(&frontend_ident, frontend->ident);
|
||||
|
||||
buf[0] = '\0';
|
||||
|
||||
snprintf(buf, sizeof(buf), "username=%s&core_name=%s&core_version=%s&"
|
||||
"game_name=%s&game_crc=%08X&port=%d"
|
||||
"&has_password=%d&has_spectate_password=%d&force_mitm=%d&retroarch_version=%s",
|
||||
"&has_password=%d&has_spectate_password=%d&force_mitm=%d&retroarch_version=%s&frontend=%s",
|
||||
username, corename, coreversion, gamename, content_crc,
|
||||
settings->uints.netplay_port,
|
||||
*settings->paths.netplay_password ? 1 : 0,
|
||||
*settings->paths.netplay_spectate_password ? 1 : 0,
|
||||
settings->bools.netplay_use_mitm_server,
|
||||
PACKAGE_VERSION);
|
||||
PACKAGE_VERSION, frontend_ident);
|
||||
#if 0
|
||||
RARCH_LOG("[netplay] announcement URL: %s\n", buf);
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user