Skip to content

Commit

Permalink
Small tweak to sys property name
Browse files Browse the repository at this point in the history
Small tweak to sys property name
  • Loading branch information
korejan committed Sep 28, 2021
1 parent d1fa2b3 commit 6cca20f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions alvr/openxr-client/alxr-common/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@ impl Options {
};
unsafe {
let mut value = [0 as libc::c_char; libc::PROP_VALUE_MAX as usize];
let property_name = b"debug.xr.graphicsPlugin\0";
let property_name = b"debug.alxr.graphicsPlugin\0";
if libc::__system_property_get(property_name.as_ptr(), value.as_mut_ptr()) != 0 {
let val_str = CStr::from_bytes_with_nul(&value).unwrap();
new_options.graphics_api = Some(From::from(val_str.to_str().unwrap_or("auto")));
}
let property_name = b"debug.xr.verbose\0";
let property_name = b"debug.alxr.verbose\0";
if libc::__system_property_get(property_name.as_ptr(), value.as_mut_ptr()) != 0 {
let val_str = CStr::from_bytes_with_nul(&value).unwrap();
new_options.verbose =
Expand Down

0 comments on commit 6cca20f

Please sign in to comment.