refactor: initialize xdevs with xrt_device_init

This commit is contained in:
Vindicus999
2025-09-24 23:59:56 -04:00
parent e03d750ba5
commit e7eff33bab
7 changed files with 12 additions and 0 deletions
+2
View File
@@ -124,6 +124,8 @@ wivrn_generic_tracker::wivrn_generic_tracker(int index, xrt_device * hmd, wivrn_
cnx(cnx),
index(index)
{
xrt_device_init(static_cast<xrt_device *>(this));
auto unique_name = std::format("WiVRn Generic Tracker #{}", index + 1);
strlcpy(str, unique_name.c_str(), std::size(str));
auto unique_serial = std::format("wivrn-{}", index + 1);