Forward systemName from properties

This commit is contained in:
Sapphire
2025-01-14 12:18:43 +01:00
committed by xytovl
parent eb982fc1c1
commit b1c0f3bac3
3 changed files with 4 additions and 0 deletions
+1
View File
@@ -158,6 +158,7 @@ std::shared_ptr<scenes::stream> scenes::stream::create(std::unique_ptr<wivrn_ses
info.face_tracking2_fb = config.check_feature(feature::face_tracking);
info.palm_pose = application::space(xr::spaces::palm_left) or application::space(xr::spaces::palm_right);
info.passthrough = self->system.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)))
+1
View File
@@ -150,6 +150,7 @@ struct headset_info_packet
bool palm_pose;
bool passthrough;
std::vector<video_codec> supported_codecs; // from preferred to least preferred
std::string system_name;
};
struct handshake
+2
View File
@@ -220,6 +220,8 @@ wivrn::wivrn_session::wivrn_session(std::unique_ptr<wivrn_connection> 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()