Skip to content

Commit

Permalink
Merge pull request #4460 from linkmauve/no-miniupnpc
Browse files Browse the repository at this point in the history
NetPlay: Fix build when miniupnpc is disabled
  • Loading branch information
Helios747 committed Nov 25, 2016
2 parents 11243ac + c4cd0d4 commit 6473a48
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Source/Core/DolphinWX/NetPlay/NetPlayLauncher.h
Expand Up @@ -41,7 +41,9 @@ class NetPlayHostConfig : public NetPlayLaunchConfig

std::string game_name;
u16 listen_port = 0;
#ifdef USE_UPNP
bool forward_port;
#endif
};

class NetPlayJoinConfig : public NetPlayLaunchConfig
Expand All @@ -57,4 +59,4 @@ class NetPlayLauncher
public:
static bool Host(const NetPlayHostConfig& config);
static bool Join(const NetPlayJoinConfig& config);
};
};
2 changes: 2 additions & 0 deletions Source/Core/DolphinWX/NetPlay/NetPlaySetupFrame.cpp
Expand Up @@ -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)
{
Expand Down

0 comments on commit 6473a48

Please sign in to comment.