Commit f6e831d8 authored by Christoph Haag's avatar Christoph Haag
Browse files

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

parent b4a7666a
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment