refactor: initialize xdevs with xrt_device_init

This commit is contained in:
Vindicus999
2025-09-25 00:25:41 -04:00
parent c9e774ee65
commit fea424e894
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);