mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-31 01:59:52 -06:00
WX: make Netplay use new-style config
This commit is contained in:
@ -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