mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-02-12 00:38:04 +00:00
steamvr: Don't crash if we don't have bindings for device
This commit is contained in:
parent
b4a7666a75
commit
f6e831d8fb
|
@ -489,6 +489,11 @@ public:
|
||||||
|
|
||||||
struct profile_template *p = get_profile_template(m_xdev->name);
|
struct profile_template *p = get_profile_template(m_xdev->name);
|
||||||
|
|
||||||
|
if (p == NULL) {
|
||||||
|
ovrd_log("Monado device has unknown profile: %d\n", m_xdev->name);
|
||||||
|
return vr::VRInitError_Unknown;
|
||||||
|
}
|
||||||
|
|
||||||
m_input_profile = std::string("{monado}/input/") + std::string(p->steamvr_input_profile_path);
|
m_input_profile = std::string("{monado}/input/") + std::string(p->steamvr_input_profile_path);
|
||||||
m_controller_type = p->steamvr_controller_type;
|
m_controller_type = p->steamvr_controller_type;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue