mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
crc is announced now (for cores that don't have needs_fullpath set)
This commit is contained in:
parent
90f0dc9942
commit
930cde21a2
@ -3334,7 +3334,7 @@ finish:
|
||||
netplay_room_list[i].gamecrc = atoi(room_data->elems[j + 6].data);
|
||||
netplay_room_list[i].timestamp = atoi(room_data->elems[j + 7].data);
|
||||
|
||||
RARCH_LOG("Room Data: \n"
|
||||
RARCH_LOG("Room Data: %d\n"
|
||||
"Nickname: %s\n"
|
||||
"Address: %s\n"
|
||||
"Port: %d\n"
|
||||
@ -3342,7 +3342,7 @@ finish:
|
||||
"Core Version: %s\n"
|
||||
"Game: %s\n"
|
||||
"Game CRC: %d\n"
|
||||
"Timestamp: %d\n",
|
||||
"Timestamp: %d\n", room_data->elems[j + 6].data,
|
||||
netplay_room_list[i].nickname,
|
||||
netplay_room_list[i].address,
|
||||
netplay_room_list[i].port,
|
||||
|
@ -153,8 +153,9 @@ static int action_bind_sublabel_netplay_room(
|
||||
if (i < 1)
|
||||
return 0;
|
||||
|
||||
snprintf(s,len, "%s - %s\n%s", netplay_room_list[i - 1].corename,
|
||||
netplay_room_list[i - 1].coreversion, netplay_room_list[i - 1].gamename);
|
||||
snprintf(s,len, "%s (%s)\n%s (%08x)",
|
||||
netplay_room_list[i - 1].corename, netplay_room_list[i - 1].coreversion,
|
||||
netplay_room_list[i - 1].gamename, netplay_room_list[i - 1].gamecrc);
|
||||
//strlcpy(s, netplay_room_list[i - 1].corename, len);
|
||||
return 0;
|
||||
}
|
||||
|
@ -405,6 +405,8 @@ static void netplay_announce()
|
||||
{
|
||||
rarch_system_info_t *system = NULL;
|
||||
settings_t *settings = config_get_ptr();
|
||||
uint32_t *content_crc_ptr = NULL;
|
||||
content_get_crc(&content_crc_ptr);
|
||||
|
||||
runloop_ctl(RUNLOOP_CTL_SYSTEM_INFO_GET, &system);
|
||||
char url [2048] = "http://lobby.libretro.com/?";
|
||||
@ -412,10 +414,10 @@ static void netplay_announce()
|
||||
buf[0] = '\0';
|
||||
|
||||
snprintf(buf, sizeof(buf), "%susername=%s&corename=%s&coreversion=%s&"
|
||||
"gamename=%s&gamecrc=%08x&port=%d",
|
||||
"gamename=%s&gamecrc=%d&port=%d",
|
||||
url, settings->username, system->info.library_name,
|
||||
system->info.library_version,
|
||||
path_basename(path_get(RARCH_PATH_BASENAME)),0,
|
||||
path_basename(path_get(RARCH_PATH_BASENAME)),*content_crc_ptr,
|
||||
settings->netplay.port);
|
||||
|
||||
task_push_http_transfer(buf, true, NULL, netplay_announce_cb, NULL);
|
||||
|
Loading…
x
Reference in New Issue
Block a user