Forward systemName from properties
This commit is contained in:
@@ -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)))
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user