Fixed incorrect value used for determining model for pico

Added ifguards for android platform
This commit is contained in:
Meister1593
2023-06-22 21:59:02 +05:00
parent fcf311129d
commit b6cc38dec9
+7 -1
View File
@@ -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")