Traversal: Add a read-only text for server:port with a "reset to default" button

Clicking it will set the config file back to stun.dolphin-emu.org with
port 6262.
This commit is contained in:
mathieui
2015-05-11 01:09:44 +02:00
parent df8b86ed63
commit bb622836b2
2 changed files with 32 additions and 0 deletions

View File

@ -26,6 +26,7 @@ private:
void OnHost(wxCommandEvent& event);
void OnQuit(wxCommandEvent& event);
void OnChoice(wxCommandEvent& event);
void OnResetTraversal(wxCommandEvent& event);
void MakeNetPlayDiag(int port, const std::string& game, bool is_hosting);
@ -37,6 +38,8 @@ private:
wxTextCtrl* m_connect_port_text;
wxTextCtrl* m_connect_ip_text;
wxChoice* m_direct_traversal;
wxStaticText* m_traversal_lbl;
wxButton* m_trav_reset_btn;
wxListBox* m_game_lbox;
#ifdef USE_UPNP