From b1c0f3bac3e3594370de975b7d4a8e6999420470 Mon Sep 17 00:00:00 2001 From: Sapphire Date: Tue, 14 Jan 2025 02:38:49 -0600 Subject: [PATCH] Forward systemName from properties --- client/scenes/stream.cpp | 1 + common/wivrn_packets.h | 1 + server/driver/wivrn_session.cpp | 2 ++ 3 files changed, 4 insertions(+) diff --git a/client/scenes/stream.cpp b/client/scenes/stream.cpp index 6dfb39c1..b8412bb4 100644 --- a/client/scenes/stream.cpp +++ b/client/scenes/stream.cpp @@ -158,6 +158,7 @@ std::shared_ptr scenes::stream::create(std::unique_ptrsystem.passthrough_supported() != xr::system::passthrough_type::no_passthrough; + info.system_name = std::string(self->system.properties().systemName); audio::get_audio_description(info); if (not(config.check_feature(feature::microphone))) diff --git a/common/wivrn_packets.h b/common/wivrn_packets.h index 68427c6c..05a521cc 100644 --- a/common/wivrn_packets.h +++ b/common/wivrn_packets.h @@ -150,6 +150,7 @@ struct headset_info_packet bool palm_pose; bool passthrough; std::vector supported_codecs; // from preferred to least preferred + std::string system_name; }; struct handshake diff --git a/server/driver/wivrn_session.cpp b/server/driver/wivrn_session.cpp index 6203fb7e..838a4dff 100644 --- a/server/driver/wivrn_session.cpp +++ b/server/driver/wivrn_session.cpp @@ -220,6 +220,8 @@ wivrn::wivrn_session::wivrn_session(std::unique_ptr connection roles.right_profile = xdevs[roles.right]->name; if (roles.gamepad >= 0) roles.gamepad_profile = xdevs[roles.gamepad]->name; + + memcpy(xrt_system.base.properties.name, get_info().system_name.c_str(), get_info().system_name.length()); } wivrn_session::~wivrn_session()