mirror of
https://github.com/citra-emu/citra-nightly.git
synced 2024-12-25 07:55:40 +00:00
Merge pull request #5634 from FearlessTobi/port-4798
Port yuzu-emu/yuzu#4798: "udp/client: Take std::function by const reference with TestCommunication()"
This commit is contained in:
commit
39e0644993
|
@ -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) {},
|
||||||
|
|
|
@ -89,7 +89,7 @@ private:
|
||||||
};
|
};
|
||||||
|
|
||||||
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);
|
||||||
|
|
||||||
} // namespace InputCommon::CemuhookUDP
|
} // namespace InputCommon::CemuhookUDP
|
||||||
|
|
Loading…
Reference in a new issue