[Netplay:Traversal] Add "Force Netplay Listen Port" feature that was in old netplay branch

This commit is contained in:
CastellaFactory
2015-09-20 20:08:37 +09:00
parent 63c373c843
commit 1f83a3d146
5 changed files with 54 additions and 14 deletions

View File

@ -12,6 +12,7 @@ class CGameListCtrl;
class wxCheckBox;
class wxChoice;
class wxListBox;
class wxSpinCtrl;
class wxStaticText;
class wxTextCtrl;
@ -27,6 +28,7 @@ private:
void OnQuit(wxCommandEvent& event);
void OnChoice(wxCommandEvent& event);
void OnResetTraversal(wxCommandEvent& event);
void OnTraversalListenPortChanged(wxCommandEvent& event);
void MakeNetPlayDiag(int port, const std::string& game, bool is_hosting);
@ -40,6 +42,8 @@ private:
wxChoice* m_direct_traversal;
wxStaticText* m_traversal_lbl;
wxButton* m_trav_reset_btn;
wxCheckBox* m_traversal_listen_port_enabled;
wxSpinCtrl* m_traversal_listen_port;
wxListBox* m_game_lbox;
#ifdef USE_UPNP