diff options
author | Morph <39850852+Morph1984@users.noreply.github.com> | 2022-02-05 06:40:28 +0100 |
---|---|---|
committer | Morph <39850852+Morph1984@users.noreply.github.com> | 2022-02-05 19:18:41 +0100 |
commit | cb30fe50cd074fe05dd1d6e4b0d58116d3d98489 (patch) | |
tree | 58450d743d317369266bbbea44734725d8b83ea6 /src/input_common/drivers/udp_client.cpp | |
parent | common: Implement NewUUID (diff) | |
download | yuzu-cb30fe50cd074fe05dd1d6e4b0d58116d3d98489.tar yuzu-cb30fe50cd074fe05dd1d6e4b0d58116d3d98489.tar.gz yuzu-cb30fe50cd074fe05dd1d6e4b0d58116d3d98489.tar.bz2 yuzu-cb30fe50cd074fe05dd1d6e4b0d58116d3d98489.tar.lz yuzu-cb30fe50cd074fe05dd1d6e4b0d58116d3d98489.tar.xz yuzu-cb30fe50cd074fe05dd1d6e4b0d58116d3d98489.tar.zst yuzu-cb30fe50cd074fe05dd1d6e4b0d58116d3d98489.zip |
Diffstat (limited to '')
-rw-r--r-- | src/input_common/drivers/udp_client.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/input_common/drivers/udp_client.cpp b/src/input_common/drivers/udp_client.cpp index 333173e3d..cbcfa7a4b 100644 --- a/src/input_common/drivers/udp_client.cpp +++ b/src/input_common/drivers/udp_client.cpp @@ -351,10 +351,10 @@ PadIdentifier UDPClient::GetPadIdentifier(std::size_t pad_index) const { }; } -Common::UUID UDPClient::GetHostUUID(const std::string& host) const { +Common::NewUUID UDPClient::GetHostUUID(const std::string& host) const { const auto ip = boost::asio::ip::make_address_v4(host); - const auto hex_host = fmt::format("{:06x}", ip.to_uint()); - return Common::UUID{hex_host}; + const auto hex_host = fmt::format("00000000-0000-0000-0000-0000{:06x}", ip.to_uint()); + return Common::NewUUID{hex_host}; } void UDPClient::Reset() { @@ -385,7 +385,7 @@ std::vector<Common::ParamPackage> UDPClient::GetInputDevices() const { Common::ParamPackage identifier{}; identifier.Set("engine", GetEngineName()); identifier.Set("display", fmt::format("UDP Controller {}", pad_identifier.pad)); - identifier.Set("guid", pad_identifier.guid.Format()); + identifier.Set("guid", pad_identifier.guid.RawString()); identifier.Set("port", static_cast<int>(pad_identifier.port)); identifier.Set("pad", static_cast<int>(pad_identifier.pad)); devices.emplace_back(identifier); |