| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
#pragma once |
| 5 |
|
| 6 |
#include <string> |
| 7 |
#include <vector> |
| 8 |
|
| 9 |
struct DualShockUDPServer |
| 10 |
{ |
| 11 |
std::string description; |
| 12 |
std::string server_address; |
| 13 |
int server_port; |
| 14 |
}; |
| 15 |
|
| 16 |
namespace DualShockUDPSettings |
| 17 |
{ |
| 18 |
constexpr char FIELD_SEPARATOR = ':'; |
| 19 |
constexpr char SERVER_SEPARATOR = ';'; |
| 20 |
|
| 21 |
std::vector<DualShockUDPServer> GetServers(); |
| 22 |
|
| 23 |
void AddServer(DualShockUDPServer server); |
| 24 |
|
| 25 |
void ReplaceServer(size_t index, DualShockUDPServer server); |
| 26 |
|
| 27 |
void RemoveServer(size_t index); |
| 28 |
|
| 29 |
bool IsEnabled(); |
| 30 |
|
| 31 |
void SetEnabled(bool enabled); |
| 32 |
} |