|
|
@ -210,8 +210,8 @@ void Client::StartCommunication(const std::string& host, u16 port, u8 pad_index,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void TestCommunication(const std::string& host, u16 port, u8 pad_index, u32 client_id,
|
|
|
|
void TestCommunication(const std::string& host, u16 port, u8 pad_index, u32 client_id,
|
|
|
|
std::function<void()> success_callback,
|
|
|
|
const std::function<void()>& success_callback,
|
|
|
|
std::function<void()> failure_callback) {
|
|
|
|
const std::function<void()>& failure_callback) {
|
|
|
|
std::thread([=] {
|
|
|
|
std::thread([=] {
|
|
|
|
Common::Event success_event;
|
|
|
|
Common::Event success_event;
|
|
|
|
SocketCallback callback{[](Response::Version version) {}, [](Response::PortInfo info) {},
|
|
|
|
SocketCallback callback{[](Response::Version version) {}, [](Response::PortInfo info) {},
|
|
|
|