Skip to content

Commit 706bd89

Browse files
committed
UE5: Fix bug causing branch detection failure
1 parent 49c8187 commit 706bd89

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/mods/vr/FFakeStereoRenderingHook.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7677,10 +7677,6 @@ bool VRRenderTargetManager_Base::allocate_render_target_texture(uintptr_t return
76777677
size_t insn_count = 0;
76787678
bool encountered_branch = false;
76797679
utility::exhaustive_decode((uint8_t*)fn, 200, [&](const utility::ExhaustionContext& ctx) -> utility::ExhaustionResult {
7680-
if (++insn_count >= 30) {
7681-
return utility::ExhaustionResult::BREAK;
7682-
}
7683-
76847680
if (std::string_view{ctx.instrux.Mnemonic}.starts_with("CALL") || std::string_view{ctx.instrux.Mnemonic}.starts_with("JMP")) {
76857681
encountered_branch = true;
76867682
return utility::ExhaustionResult::BREAK;

0 commit comments

Comments
 (0)