mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-05-05 18:01:15 -04:00
33 lines
633 B
C++
33 lines
633 B
C++
// Copyright 2026 Dolphin Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
struct DualShockUDPServer
|
|
{
|
|
std::string description;
|
|
std::string server_address;
|
|
int server_port;
|
|
};
|
|
|
|
namespace DualShockUDPSettings
|
|
{
|
|
constexpr char FIELD_SEPARATOR = ':';
|
|
constexpr char SERVER_SEPARATOR = ';';
|
|
|
|
std::vector<DualShockUDPServer> GetServers();
|
|
|
|
void AddServer(DualShockUDPServer server);
|
|
|
|
void ReplaceServer(size_t index, DualShockUDPServer server);
|
|
|
|
void RemoveServer(size_t index);
|
|
|
|
bool IsEnabled();
|
|
|
|
void SetEnabled(bool enabled);
|
|
} // namespace DualShockUDPSettings
|