From b6cc38dec9e2829c1488c62539e64f5a6d7de2b5 Mon Sep 17 00:00:00 2001 From: Meister1593 Date: Thu, 22 Jun 2023 21:58:18 +0500 Subject: [PATCH] Fixed incorrect value used for determining model for pico Added ifguards for android platform --- client/application.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/client/application.cpp b/client/application.cpp index 5ecae1e8..f4963a39 100644 --- a/client/application.cpp +++ b/client/application.cpp @@ -411,8 +411,12 @@ void application::initialize() xr_actionset = xr::actionset(xr_instance, "actions", "Actions"); // TODO better way to handle bindings for different vendors/flavors of vendor +#ifdef XR_USE_PLATFORM_ANDROID char property_chararr[PROP_VALUE_MAX + 1]; __system_property_get("ro.product.manufacturer", property_chararr); +#elif + char property_chararr[93]; +#endif std::string manufacturer_string(property_chararr); if (manufacturer_string == "Oculus" || manufacturer_string == "Meta") @@ -427,7 +431,9 @@ void application::initialize() } else if (manufacturer_string == "Pico") { - __system_property_get("ro.product.manufacturer", property_chararr); +#ifdef XR_USE_PLATFORM_ANDROID + __system_property_get("ro.product.model", property_chararr); +#endif std::string model_string(property_chararr); if (model_string == "Pico Neo 3")