Allow multiple configuration files
Will merge contents from @CMAKE_INSTALL_PREFIX@/share/wivrn/config.json /etc/wivrn/config.json ~/.config/wivrn.config.json (XDG_CONFIG_DIR in fact) If -f option is provided, just parse that file, don't merge anything
This commit is contained in:
@@ -179,7 +179,7 @@ wivrn::wivrn_session::wivrn_session(std::unique_ptr<wivrn_connection> connection
|
||||
static_roles.hand_tracking.right = xdevs[xdev_count++] = &right_hand;
|
||||
|
||||
#if WIVRN_FEATURE_STEAMVR_LIGHTHOUSE
|
||||
auto use_steamvr_lh = configuration::read_user_configuration().use_steamvr_lh || std::getenv("WIVRN_USE_STEAMVR_LH");
|
||||
auto use_steamvr_lh = configuration().use_steamvr_lh || std::getenv("WIVRN_USE_STEAMVR_LH");
|
||||
xrt_system_devices * lhdevs = NULL;
|
||||
|
||||
if (use_steamvr_lh && steamvr_lh_create_devices(&lhdevs) == XRT_SUCCESS)
|
||||
|
||||
Reference in New Issue
Block a user