WX: make Netplay use new-style config
This commit is contained in:
1 parent
f8fea83e67
commit
dde3471b62
10 files changed
+134
-152
No files matched your search
@@ -6,7 +6,6 @@
|
||||
|
||||
#include <string>
|
||||
#include "Common/CommonTypes.h"
|
||||
#include "Common/IniFile.h"
|
||||
|
||||
class GameListCtrl;
|
||||
class wxRect;
|
||||
@@ -15,12 +14,8 @@ class wxWindow;
|
||||
class NetPlayLaunchConfig
|
||||
{
|
||||
public:
|
||||
static std::string GetTraversalHostFromIniConfig(const IniFile::Section& netplay_section);
|
||||
static u16 GetTraversalPortFromIniConfig(const IniFile::Section& netplay_section);
|
||||
void SetDialogInfo(wxWindow* parent);
|
||||
|
||||
static const std::string DEFAULT_TRAVERSAL_HOST;
|
||||
static constexpr u16 DEFAULT_TRAVERSAL_PORT = 6262;
|
||||
const wxRect window_defaults{wxDefaultCoord, wxDefaultCoord, 768, 768 - 128};
|
||||
|
||||
std::string player_name;
|
||||
@@ -35,9 +30,7 @@ public:
|
||||
class NetPlayHostConfig : public NetPlayLaunchConfig
|
||||
{
|
||||
public:
|
||||
void FromIniConfig(IniFile::Section& netplay_section);
|
||||
|
||||
static constexpr u16 DEFAULT_LISTEN_PORT = 2626;
|
||||
void FromConfig();
|
||||
|
||||
std::string game_name;
|
||||
u16 listen_port = 0;
|
||||
|
||||
Reference in new issue
Block a user