use deferred netplay init

This commit is contained in:
radius 2017-01-22 13:07:30 -05:00
parent 680d281cb9
commit a0e6a24f38
3 changed files with 2 additions and 7 deletions

View File

@ -3132,7 +3132,7 @@ static int action_ok_netplay_connect_room(const char *path,
strlcpy(tmp_hostname, netplay_room_list[idx - 1].address, sizeof(tmp_hostname));
snprintf(tmp_hostname, sizeof(tmp_hostname), "%s:%d",
netplay_room_list[idx - 1].address, netplay_room_list[idx - 1].port);
RARCH_LOG("%s %s %08x", netplay_room_list[idx - 1].address, netplay_room_list[idx - 1].gamename, netplay_room_list[idx - 1].gamecrc);
/* If we haven't yet started, this will load on its own */
if (!content_is_inited())
{

View File

@ -164,8 +164,6 @@ static bool get_self_input_state(netplay_t *netplay)
bool init_netplay_deferred(const char* server, unsigned port)
{
RARCH_LOG("deferred! %s\n", server);
if (!string_is_empty(server) && port != 0)
{
strlcpy(server_address_deferred, server, sizeof(server_address_deferred));

View File

@ -46,8 +46,6 @@ typedef struct
static void netplay_crc_scan_callback(void *task_data,
void *user_data, const char *error)
{
printf("CALLBACK\n");
netplay_crc_handle_t *state = (netplay_crc_handle_t*)task_data;
if (!state)
@ -56,8 +54,7 @@ static void netplay_crc_scan_callback(void *task_data,
printf("%s\n", state->hostname);
printf("%s\n", state->path);
printf("%s\n", state->corename);
command_event(CMD_EVENT_NETPLAY_INIT, state->hostname);
command_event(CMD_EVENT_NETPLAY_INIT_DIRECT_DEFERRED, state->hostname);
free(state);
}