mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-08 09:09:04 +00:00
Netplay: Pass netplay settings via BootSessionData.
This commit is contained in:
parent
4edb3a8074
commit
1732071a10
5 changed files with 31 additions and 14 deletions
|
@ -86,9 +86,12 @@ bool BootCore(std::unique_ptr<BootParameters> boot, const WindowSystemInfo& wsi)
|
|||
|
||||
if (NetPlay::IsNetPlayRunning())
|
||||
{
|
||||
const NetPlay::NetSettings& netplay_settings = NetPlay::GetNetSettings();
|
||||
Config::AddLayer(ConfigLoaders::GenerateNetPlayConfigLoader(netplay_settings));
|
||||
StartUp.bCopyWiiSaveNetplay = netplay_settings.m_CopyWiiSave;
|
||||
const NetPlay::NetSettings* netplay_settings = boot->boot_session_data.GetNetplaySettings();
|
||||
if (!netplay_settings)
|
||||
return false;
|
||||
|
||||
Config::AddLayer(ConfigLoaders::GenerateNetPlayConfigLoader(*netplay_settings));
|
||||
StartUp.bCopyWiiSaveNetplay = netplay_settings->m_CopyWiiSave;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue