Skip to content

Commit

Permalink
FFakeStereoRenderingHook: Fix case where interface is removed
Browse files Browse the repository at this point in the history
  • Loading branch information
praydog committed Jan 23, 2025
1 parent 6766682 commit 9417393
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/mods/vr/FFakeStereoRenderingHook.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -537,8 +537,15 @@ bool FFakeStereoRenderingHook::hook() {
return false;
};

const auto found_version = sdk::search_for_version(utility::get_executable());

if (!found_version) {
SPDLOG_WARN("Failed to find version in executable");
}

// Check for version 4.27.2.0
if (check_file_version(0x4001B, 0x20000)) {
// 4.26 also works here
if (check_file_version(0x4001B, 0x20000) || found_version.value_or(L"") == L"4.26") {
return nonstandard_create_stereo_device_hook_4_27();
}

Expand Down

0 comments on commit 9417393

Please sign in to comment.