Skip to content

Commit

Permalink
Fix case where projection override scan could fail
Browse files Browse the repository at this point in the history
  • Loading branch information
praydog committed Oct 20, 2023
1 parent 53fc792 commit a20f474
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/mods/vr/FFakeStereoRenderingHook.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -664,6 +664,11 @@ bool FFakeStereoRenderingHook::standard_fake_stereo_hook(uintptr_t vtable) {
}

auto ip = (uint8_t*)potential_func;
if (*(uint8_t*)ip == 0xE9) {
ip = (uint8_t*)utility::calculate_absolute(potential_func + 1);
SPDLOG_INFO("Found JMP at {:x}, jumping to {:x}", (uintptr_t)potential_func, (uintptr_t)ip);
}

bool found = false;

SPDLOG_INFO("Scanning {:x}...", (uintptr_t)ip);
Expand Down

0 comments on commit a20f474

Please sign in to comment.