mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
NetPlay: Improve settings synchronization and UI
Most settings which affect determinism will now be synced on NetPlay. Additionally, there's a strict sync mode which will sync various enhancements to prevent desync in games that use EFB reads. This also adds a check for all players having the IPL.bin file, and doesn't load it for anyone if someone is missing it. This prevents desyncs caused by mismatched system fonts. Additionally, the NetPlay window was getting too wide with checkboxes, so FlowLayout has been introduced to make the checkboxes take up multiple rows dynamically. However, there's some minor vertical centering issues I haven't been able to solve, but it's better than a ridiculously wide window.
This commit is contained in:
@ -341,8 +341,12 @@ void GameCubePane::SaveSettings()
|
||||
|
||||
// IPL Settings
|
||||
params.bHLE_BS2 = m_skip_main_menu->isChecked();
|
||||
Config::SetBaseOrCurrent(Config::MAIN_SKIP_IPL, m_skip_main_menu->isChecked());
|
||||
params.SelectedLanguage = m_language_combo->currentIndex();
|
||||
Config::SetBaseOrCurrent(Config::MAIN_GC_LANGUAGE, m_language_combo->currentIndex());
|
||||
params.bOverrideGCLanguage = m_override_language_ntsc->isChecked();
|
||||
Config::SetBaseOrCurrent(Config::MAIN_OVERRIDE_GC_LANGUAGE,
|
||||
m_override_language_ntsc->isChecked());
|
||||
|
||||
for (int i = 0; i < SLOT_COUNT; i++)
|
||||
{
|
||||
@ -390,6 +394,18 @@ void GameCubePane::SaveSettings()
|
||||
}
|
||||
|
||||
SConfig::GetInstance().m_EXIDevice[i] = dev;
|
||||
switch (i)
|
||||
{
|
||||
case SLOT_A_INDEX:
|
||||
Config::SetBaseOrCurrent(Config::MAIN_SLOT_A, dev);
|
||||
break;
|
||||
case SLOT_B_INDEX:
|
||||
Config::SetBaseOrCurrent(Config::MAIN_SLOT_B, dev);
|
||||
break;
|
||||
case SLOT_SP1_INDEX:
|
||||
Config::SetBaseOrCurrent(Config::MAIN_SERIAL_PORT_1, dev);
|
||||
break;
|
||||
}
|
||||
}
|
||||
LoadSettings();
|
||||
}
|
||||
|
Reference in New Issue
Block a user