Merge pull request #8146 from Techjar/netplay-network-opts

Qt/NetPlayDialog: Change network mode options to radio buttons
This commit is contained in:
Connor McLaughlin
2019-06-08 20:05:35 +10:00
committed by GitHub
5 changed files with 121 additions and 46 deletions

View File

@ -1295,7 +1295,8 @@ bool MainWindow::NetPlayJoin()
const std::string traversal_host = Config::Get(Config::NETPLAY_TRAVERSAL_SERVER);
const u16 traversal_port = Config::Get(Config::NETPLAY_TRAVERSAL_PORT);
const std::string nickname = Config::Get(Config::NETPLAY_NICKNAME);
const bool host_input_authority = Config::Get(Config::NETPLAY_HOST_INPUT_AUTHORITY);
const std::string network_mode = Config::Get(Config::NETPLAY_NETWORK_MODE);
const bool host_input_authority = network_mode == "hostinputauthority" || network_mode == "golf";
if (server)
{