mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 20:28:56 +00:00
commit changes
This commit is contained in:
parent
09fe9ed15b
commit
394228990a
12 changed files with 19 additions and 33 deletions
|
@ -176,7 +176,7 @@ void NetPlaySetupDialog::CreateMainLayout()
|
|||
connection_layout->addWidget(
|
||||
new QLabel(tr(
|
||||
"ALERT:\n\n"
|
||||
"All players must use the same Dolphin version, unless MPN Dolphin is used to host\n"
|
||||
"All players must use the same Dolphin version, unless Dolphin-MPN is used to host\n"
|
||||
"If enabled, SD cards must be identical between players.\n"
|
||||
"If DSP LLE is used, DSP ROMs must be identical between players.\n"
|
||||
"If a game is hanging on boot, it may not support Dual Core Netplay."
|
||||
|
@ -249,16 +249,18 @@ NetPlaySetupDialog::~NetPlaySetupDialog()
|
|||
|
||||
void NetPlaySetupDialog::ConnectWidgets()
|
||||
{
|
||||
connect(m_connection_type, &QComboBox::currentIndexChanged, this,
|
||||
connect(m_connection_type, qOverload<int>(&QComboBox::currentIndexChanged), this,
|
||||
&NetPlaySetupDialog::OnConnectionTypeChanged);
|
||||
connect(m_nickname_edit, &QLineEdit::textChanged, this, &NetPlaySetupDialog::SaveSettings);
|
||||
|
||||
// Connect widget
|
||||
connect(m_ip_edit, &QLineEdit::textChanged, this, &NetPlaySetupDialog::SaveSettings);
|
||||
connect(m_connect_port_box, &QSpinBox::valueChanged, this, &NetPlaySetupDialog::SaveSettings);
|
||||
connect(m_connect_port_box, qOverload<int>(&QSpinBox::valueChanged), this,
|
||||
&NetPlaySetupDialog::SaveSettings);
|
||||
// Host widget
|
||||
connect(m_host_port_box, &QSpinBox::valueChanged, this, &NetPlaySetupDialog::SaveSettings);
|
||||
connect(m_host_games, &QListWidget::currentRowChanged, [this](int index) {
|
||||
connect(m_host_port_box, qOverload<int>(&QSpinBox::valueChanged), this,
|
||||
&NetPlaySetupDialog::SaveSettings);
|
||||
connect(m_host_games, qOverload<int>(&QListWidget::currentRowChanged), [this](int index) {
|
||||
Settings::GetQSettings().setValue(QStringLiteral("netplay/hostgame"),
|
||||
m_host_games->item(index)->text());
|
||||
});
|
||||
|
@ -268,16 +270,6 @@ void NetPlaySetupDialog::ConnectWidgets()
|
|||
|
||||
connect(m_host_games, &QListWidget::itemDoubleClicked, this, &NetPlaySetupDialog::accept);
|
||||
|
||||
connect(m_host_chunked_upload_limit_check, &QCheckBox::toggled, this, [this](bool value) {
|
||||
m_host_chunked_upload_limit_box->setEnabled(value);
|
||||
SaveSettings();
|
||||
});
|
||||
|
||||
connect(m_host_chunked_upload_limit_box, &QSpinBox::valueChanged, this,
|
||||
&NetPlaySetupDialog::SaveSettings);
|
||||
|
||||
connect(m_host_server_browser, &QCheckBox::toggled, this, &NetPlaySetupDialog::SaveSettings);
|
||||
|
||||
connect(m_host_server_name, &QLineEdit::textChanged, this, &NetPlaySetupDialog::SaveSettings);
|
||||
|
||||
#ifdef USE_UPNP
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue