fix: add support for "E9 rel32" for shorter method lengths

This commit is contained in:
nexusverypro
2026-07-05 19:31:46 +01:00
parent edf088f071
commit af6cf37212
4 changed files with 144 additions and 37 deletions

View File

@@ -13,7 +13,7 @@
// versioning
#define RADHOOK_VERSION_MAJOR 1
#define RADHOOK_VERSION_MINOR 1
#define RADHOOK_VERSION_PATCH 0
#define RADHOOK_VERSION_PATCH 1
#if _MSC_VER
# include <sal.h> // for source code annotations
@@ -41,8 +41,12 @@ enum class RadHookResult : int {
InvalidDetour,
InvalidHandle,
TrampolineTooFar,
TargetTooSmall,
UnknownTarget,
BadDecode,
RelativeControlFlow,
TooManyRipFixups,
ExceedsMaxStolen,
InsufficientLength,
Unknown,
};