Fix player name not being loaded when using "Host with Netplay..."
This commit is contained in:
parent
09c6148aba
commit
70d9440d10
|
@ -140,6 +140,8 @@ void NetPlayLaunchConfig::SetDialogInfo(const IniFile::Section& section, wxWindo
|
||||||
|
|
||||||
void NetPlayHostConfig::FromIniConfig(IniFile::Section& netplay_section)
|
void NetPlayHostConfig::FromIniConfig(IniFile::Section& netplay_section)
|
||||||
{
|
{
|
||||||
|
netplay_section.Get("Nickname", &player_name, "Player");
|
||||||
|
|
||||||
std::string traversal_choice_setting;
|
std::string traversal_choice_setting;
|
||||||
netplay_section.Get("TraversalChoice", &traversal_choice_setting, "direct");
|
netplay_section.Get("TraversalChoice", &traversal_choice_setting, "direct");
|
||||||
use_traversal = traversal_choice_setting == "traversal";
|
use_traversal = traversal_choice_setting == "traversal";
|
||||||
|
|
Loading…
Reference in New Issue