1
0
Fork 0
mirror of https://github.com/Lime3DS/Lime3DS synced 2025-01-09 13:43:27 +00:00

Merge pull request from FearlessTobi/port-4798

Port : "udp/client: Take std::function by const reference with TestCommunication()"
This commit is contained in:
bunnei 2020-12-30 01:54:40 -08:00 committed by GitHub
commit 39e0644993
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions
src/input_common/udp

View file

@ -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) {},

View file

@ -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