Skip to content

Commit

Permalink
IXRTrackingSystemHook: Update for 5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
praydog committed Dec 27, 2023
1 parent cc239a8 commit 85a549c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/mods/vr/IXRTrackingSystemHook.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ detail::IXRTrackingSystemVT& get_tracking_system_vtable() {
SPDLOG_INFO("Found version {}.{} from executable (disk version)", HIWORD(version.dwFileVersionMS), LOWORD(version.dwFileVersionMS));
}

// TODO: actually dump 5.2-5.3
// TODO: actually dump 5.2
// >= 5.3
if (version.dwFileVersionMS == 0x50003 || str_version.starts_with("5.3")) {
return ue5_1::IXRTrackingSystemVT::get();
return ue5_3::IXRTrackingSystemVT::get();
}

// >= 5.2
Expand Down Expand Up @@ -122,9 +122,9 @@ detail::IXRCameraVT& get_camera_vtable() {
version.dwFileVersionMS = 0;
}

// TODO: actually dump 5.2-5.3
// TODO: actually dump 5.2
if (version.dwFileVersionMS == 0x50003 || str_version.starts_with("5.3")) {
return ue5_1::IXRCameraVT::get();
return ue5_3::IXRCameraVT::get();
}

// >= 5.2
Expand Down Expand Up @@ -204,9 +204,9 @@ detail::IHeadMountedDisplayVT& get_hmd_vtable() {
version.dwFileVersionMS = 0;
}

// TODO: actually dump 5.2-5.3
// TODO: actually dump 5.2
if (version.dwFileVersionMS == 0x50003 || str_version.starts_with("5.3")) {
return ue5_1::IHeadMountedDisplayVT::get();
return ue5_3::IHeadMountedDisplayVT::get();
}

// >= 5.2
Expand Down

0 comments on commit 85a549c

Please sign in to comment.