diff --git a/client/scenes/stream.cpp b/client/scenes/stream.cpp index dc20f14e..aff2938d 100644 --- a/client/scenes/stream.cpp +++ b/client/scenes/stream.cpp @@ -189,7 +189,11 @@ std::shared_ptr scenes::stream::create(std::unique_ptrnetwork_session = std::move(network_session); self->network_session->send_control([&]() { - from_headset::headset_info_packet info{}; + from_headset::headset_info_packet info{ + .language = application::get_messages_info().language, + .country = application::get_messages_info().country, + .variant = application::get_messages_info().variant, + }; auto view = self->system.view_configuration_views(self->viewconfig)[0]; view = override_view(view, guess_model()); diff --git a/common/wivrn_packets.h b/common/wivrn_packets.h index 919d3b41..ce852ddd 100644 --- a/common/wivrn_packets.h +++ b/common/wivrn_packets.h @@ -239,6 +239,11 @@ struct headset_info_packet uint32_t num_generic_trackers; std::vector supported_codecs; // from preferred to least preferred std::string system_name; + + // Used for the application list + std::string language; + std::string country; + std::string variant; }; struct handshake diff --git a/server/driver/wivrn_session.cpp b/server/driver/wivrn_session.cpp index 45d21178..b42e63d1 100644 --- a/server/driver/wivrn_session.cpp +++ b/server/driver/wivrn_session.cpp @@ -172,6 +172,12 @@ wivrn::wivrn_session::wivrn_session(std::unique_ptr connection throw; } + (*this)(from_headset::get_application_list{ + .language = get_info().language, + .country = get_info().country, + .variant = get_info().variant, + }); + static_roles.head = xdevs[xdev_count++] = &hmd; if (hmd.supported.face_tracking)