mirror of
https://github.com/starr-dusT/yuzu-mainline
synced 2024-03-05 21:12:25 -08:00
input_common/udp_client: Replace deprecated from_string()/to_ulong() functions
These are deprecated and make_address variants and to_uint() should be used instead.
This commit is contained in:
parent
b084a9bf0a
commit
87eb3cb083
@ -349,8 +349,8 @@ PadIdentifier UDPClient::GetPadIdentifier(std::size_t pad_index) const {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Common::UUID UDPClient::GetHostUUID(const std::string& host) const {
|
Common::UUID UDPClient::GetHostUUID(const std::string& host) const {
|
||||||
const auto ip = boost::asio::ip::address_v4::from_string(host);
|
const auto ip = boost::asio::ip::make_address_v4(host);
|
||||||
const auto hex_host = fmt::format("{:06x}", ip.to_ulong());
|
const auto hex_host = fmt::format("{:06x}", ip.to_uint());
|
||||||
return Common::UUID{hex_host};
|
return Common::UUID{hex_host};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user