Skip to content

Commit

Permalink
Fix regression breaking UE5 games
Browse files Browse the repository at this point in the history
  • Loading branch information
praydog committed Jun 13, 2023
1 parent 3b3aeb8 commit fe9d3bd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions shared/sdk/UEngine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -305,10 +305,6 @@ std::optional<uintptr_t> UEngine::get_initialize_hmd_device_address() {
result = std::nullopt;
}
}

if (result) {
SPDLOG_INFO("Found InitializeHMDDevice at {:x}", (uintptr_t)*result);
}
}

if (!result) try {
Expand Down Expand Up @@ -357,6 +353,10 @@ std::optional<uintptr_t> UEngine::get_initialize_hmd_device_address() {
result = std::nullopt;
}

if (result) {
SPDLOG_INFO("Found InitializeHMDDevice at {:x}", (uintptr_t)*result);
}

return result;
}();

Expand Down
2 changes: 1 addition & 1 deletion src/mods/vr/FFakeStereoRenderingHook.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3969,7 +3969,7 @@ __forceinline void FFakeStereoRenderingHook::calculate_stereo_view_offset(
*view_location -= eye_separation;
} else {
if (!is_2d_screen) {
*view_location -= head_offset;
*view_d -= head_offset;
}

*view_d -= eye_separation;
Expand Down

0 comments on commit fe9d3bd

Please sign in to comment.