mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
Merge pull request #4460 from linkmauve/no-miniupnpc
NetPlay: Fix build when miniupnpc is disabled
This commit is contained in:
commit
6473a485d0
@ -41,7 +41,9 @@ public:
|
||||
|
||||
std::string game_name;
|
||||
u16 listen_port = 0;
|
||||
#ifdef USE_UPNP
|
||||
bool forward_port;
|
||||
#endif
|
||||
};
|
||||
|
||||
class NetPlayJoinConfig : public NetPlayLaunchConfig
|
||||
@ -57,4 +59,4 @@ class NetPlayLauncher
|
||||
public:
|
||||
static bool Host(const NetPlayHostConfig& config);
|
||||
static bool Join(const NetPlayJoinConfig& config);
|
||||
};
|
||||
};
|
||||
|
@ -337,7 +337,9 @@ void NetPlaySetupFrame::DoHost()
|
||||
host_config.player_name = WxStrToStr(m_nickname_text->GetValue());
|
||||
host_config.game_list_ctrl = m_game_list;
|
||||
host_config.SetDialogInfo(netplay_section, m_parent);
|
||||
#ifdef USE_UPNP
|
||||
host_config.forward_port = m_upnp_chk->GetValue();
|
||||
#endif
|
||||
|
||||
if (host_config.use_traversal)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user