Skip to content

Commit

Permalink
Fix LAN room join for netpacket cores (#16026)
Browse files Browse the repository at this point in the history
Tested by @schellingb
  • Loading branch information
davidgfnet authored Dec 21, 2023
1 parent f4f43d9 commit 799e56c
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions menu/cbs/menu_cbs_ok.c
Original file line number Diff line number Diff line change
Expand Up @@ -6237,8 +6237,18 @@ static int action_ok_netplay_connect_room(const char *path, const char *label,
else
snprintf(hostname, sizeof(hostname), "%s|%d", room->address, room->port);

task_push_netplay_crc_scan(room->gamecrc, room->gamename,
room->subsystem_name, room->corename, hostname);
if (netplay_driver_ctl(RARCH_NETPLAY_CTL_USE_CORE_PACKET_INTERFACE, NULL))
{
netplay_driver_ctl(RARCH_NETPLAY_CTL_ENABLE_CLIENT, NULL);
command_event(CMD_EVENT_NETPLAY_INIT_DIRECT, (void*)hostname);
menu_input_dialog_end();
retroarch_menu_running_finished(false);
}
else
{
task_push_netplay_crc_scan(room->gamecrc, room->gamename,
room->subsystem_name, room->corename, hostname);
}

return 0;
}
Expand Down

0 comments on commit 799e56c

Please sign in to comment.