Send app list ASAP

This commit is contained in:
Guillaume Meunier
2025-08-08 20:41:46 +02:00
parent 1b78180d73
commit 1b11594c3e
3 changed files with 16 additions and 1 deletions
+5 -1
View File
@@ -189,7 +189,11 @@ std::shared_ptr<scenes::stream> scenes::stream::create(std::unique_ptr<wivrn_ses
self->network_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());
+5
View File
@@ -239,6 +239,11 @@ struct headset_info_packet
uint32_t num_generic_trackers;
std::vector<video_codec> 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
+6
View File
@@ -172,6 +172,12 @@ wivrn::wivrn_session::wivrn_session(std::unique_ptr<wivrn_connection> 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)