Skip to content

Commit

Permalink
Fix case where GetDesiredNumberOfViews could fail to be found
Browse files Browse the repository at this point in the history
  • Loading branch information
praydog committed Oct 10, 2023
1 parent 9c5cdf7 commit 233f597
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/mods/vr/FFakeStereoRenderingHook.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -969,6 +969,7 @@ bool FFakeStereoRenderingHook::standard_fake_stereo_hook(uintptr_t vtable) {

// pretty consistent patterns
if (sdk::is_vfunc_pattern(*func_ptr, "0F B6 C2 FF C0 C3") ||
sdk::is_vfunc_pattern(*func_ptr, "33 C0 84 D2 0F 95 C0 FF C0 C3") ||
sdk::is_vfunc_pattern(*func_ptr, "84 D2 74 04 8B 41 14 C3 B8 01"))
{
SPDLOG_INFO("Found GetDesiredNumberOfViews function at index: {}", i);
Expand Down

0 comments on commit 233f597

Please sign in to comment.