steamvr: Don't crash if we don't have bindings for device

This commit is contained in:
Christoph Haag 2021-05-13 13:51:02 +02:00
parent b4a7666a75
commit f6e831d8fb

View file

@ -489,6 +489,11 @@ public:
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_controller_type = p->steamvr_controller_type;
}