mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
NetPlay: Split save and SD card write settings
This actually eliminates any setting pertaining to SD cards from the NetPlay dialog, as it would effectively just be a duplicate of the setting in the Wii pane, potentially causing confusion. This also enables save data writing by default, as this is probably what most players want, and should avoid them losing hours of progress because they forgot to tick a checkbox.
This commit is contained in:
@ -108,10 +108,8 @@ void NetPlayDialog::CreateMainLayout()
|
||||
|
||||
m_data_menu = m_menu_bar->addMenu(tr("Data"));
|
||||
m_data_menu->setToolTipsVisible(true);
|
||||
m_save_sd_action = m_data_menu->addAction(tr("Write Save/SD Data"));
|
||||
m_save_sd_action->setToolTip(
|
||||
tr("If \"Allow Writes to SD Card\" is disabled this does not override it."));
|
||||
m_save_sd_action->setCheckable(true);
|
||||
m_write_save_data_action = m_data_menu->addAction(tr("Write Save Data"));
|
||||
m_write_save_data_action->setCheckable(true);
|
||||
m_load_wii_action = m_data_menu->addAction(tr("Load Wii Save"));
|
||||
m_load_wii_action->setCheckable(true);
|
||||
m_sync_save_data_action = m_data_menu->addAction(tr("Sync Saves"));
|
||||
@ -362,7 +360,7 @@ void NetPlayDialog::ConnectWidgets()
|
||||
|
||||
connect(m_buffer_size_box, qOverload<int>(&QSpinBox::valueChanged), this,
|
||||
&NetPlayDialog::SaveSettings);
|
||||
connect(m_save_sd_action, &QAction::toggled, this, &NetPlayDialog::SaveSettings);
|
||||
connect(m_write_save_data_action, &QAction::toggled, this, &NetPlayDialog::SaveSettings);
|
||||
connect(m_load_wii_action, &QAction::toggled, this, &NetPlayDialog::SaveSettings);
|
||||
connect(m_sync_save_data_action, &QAction::toggled, this, &NetPlayDialog::SaveSettings);
|
||||
connect(m_sync_codes_action, &QAction::toggled, this, &NetPlayDialog::SaveSettings);
|
||||
@ -769,7 +767,7 @@ void NetPlayDialog::SetOptionsEnabled(bool enabled)
|
||||
m_start_button->setEnabled(enabled);
|
||||
m_game_button->setEnabled(enabled);
|
||||
m_load_wii_action->setEnabled(enabled);
|
||||
m_save_sd_action->setEnabled(enabled);
|
||||
m_write_save_data_action->setEnabled(enabled);
|
||||
m_sync_save_data_action->setEnabled(enabled);
|
||||
m_sync_codes_action->setEnabled(enabled);
|
||||
m_assign_ports_button->setEnabled(enabled);
|
||||
@ -1038,7 +1036,7 @@ std::string NetPlayDialog::FindGBARomPath(const std::array<u8, 20>& hash, std::s
|
||||
void NetPlayDialog::LoadSettings()
|
||||
{
|
||||
const int buffer_size = Config::Get(Config::NETPLAY_BUFFER_SIZE);
|
||||
const bool write_save_sdcard_data = Config::Get(Config::NETPLAY_WRITE_SAVE_SDCARD_DATA);
|
||||
const bool write_save_data = Config::Get(Config::NETPLAY_WRITE_SAVE_DATA);
|
||||
const bool load_wii_save = Config::Get(Config::NETPLAY_LOAD_WII_SAVE);
|
||||
const bool sync_saves = Config::Get(Config::NETPLAY_SYNC_SAVES);
|
||||
const bool sync_codes = Config::Get(Config::NETPLAY_SYNC_CODES);
|
||||
@ -1049,7 +1047,7 @@ void NetPlayDialog::LoadSettings()
|
||||
const bool hide_remote_gbas = Config::Get(Config::NETPLAY_HIDE_REMOTE_GBAS);
|
||||
|
||||
m_buffer_size_box->setValue(buffer_size);
|
||||
m_save_sd_action->setChecked(write_save_sdcard_data);
|
||||
m_write_save_data_action->setChecked(write_save_data);
|
||||
m_load_wii_action->setChecked(load_wii_save);
|
||||
m_sync_save_data_action->setChecked(sync_saves);
|
||||
m_sync_codes_action->setChecked(sync_codes);
|
||||
@ -1089,7 +1087,7 @@ void NetPlayDialog::SaveSettings()
|
||||
else
|
||||
Config::SetBase(Config::NETPLAY_BUFFER_SIZE, m_buffer_size_box->value());
|
||||
|
||||
Config::SetBase(Config::NETPLAY_WRITE_SAVE_SDCARD_DATA, m_save_sd_action->isChecked());
|
||||
Config::SetBase(Config::NETPLAY_WRITE_SAVE_DATA, m_write_save_data_action->isChecked());
|
||||
Config::SetBase(Config::NETPLAY_LOAD_WII_SAVE, m_load_wii_action->isChecked());
|
||||
Config::SetBase(Config::NETPLAY_SYNC_SAVES, m_sync_save_data_action->isChecked());
|
||||
Config::SetBase(Config::NETPLAY_SYNC_CODES, m_sync_codes_action->isChecked());
|
||||
|
Reference in New Issue
Block a user