Changed AOB scan function name

This commit is contained in:
2025-08-20 10:53:58 +02:00
parent f45e645c75
commit 33001e9d59
17 changed files with 123 additions and 67 deletions

View File

@@ -80,11 +80,11 @@ extern "C" __declspec(dllexport) void SetFixEnabled(bool enabled, bool init)
if (FOVaddress == nullptr) {
if (gameExecutable == "u4.exe") {
auto FOVStringObfuscated = make_obfuscated<0x4A>("C5 FA ?? ?? ?? ?? ?? ?? C5 F2 ?? ?? ?? ?? ?? ?? C5 7A ?? ?? ?? ?? ?? ?? C5 7A");
FOVaddress = Memory::aob_scan(gameExecutable, FOVStringObfuscated.decrypt(), PAGE_EXECUTE_READ);
FOVaddress = Memory::AOBScan(gameExecutable, FOVStringObfuscated.decrypt(), PAGE_EXECUTE_READ);
}
else {
auto FOVStringObfuscated = make_obfuscated<0x4A>("C5 FA ?? ?? ?? ?? ?? ?? C5 F2 ?? ?? ?? ?? ?? ?? E8 ?? ?? ?? ?? C5 92");
FOVaddress = Memory::aob_scan(gameExecutable, FOVStringObfuscated.decrypt(), PAGE_EXECUTE_READ);
FOVaddress = Memory::AOBScan(gameExecutable, FOVStringObfuscated.decrypt(), PAGE_EXECUTE_READ);
}
if (!FOVaddress)
@@ -95,7 +95,7 @@ extern "C" __declspec(dllexport) void SetFixEnabled(bool enabled, bool init)
}
if (PHOTOaddress == nullptr) {
auto PhotoFOVStringObfuscated = make_obfuscated<0x4A>("C5 FA ?? ?? ?? ?? ?? ?? C5 FA ?? ?? ?? ?? ?? ?? 41 ?? ?? ?? ?? ?? 48 8B ?? ?? ?? ?? ?? 48 83");
PHOTOaddress = Memory::aob_scan(gameExecutable, PhotoFOVStringObfuscated.decrypt(), PAGE_EXECUTE_READ);
PHOTOaddress = Memory::AOBScan(gameExecutable, PhotoFOVStringObfuscated.decrypt(), PAGE_EXECUTE_READ);
if (!PHOTOaddress)
logger->warn("Photo FOV signature not found. Maybe your game has been updated and is no more compatible with this plugin.");
@@ -106,7 +106,7 @@ extern "C" __declspec(dllexport) void SetFixEnabled(bool enabled, bool init)
}
if (CINEMATICSASPECTaddress == nullptr) {
constexpr auto CinematicsAspectStringObfuscated = make_obfuscated<0x4A>("48 8B ?? ?? ?? ?? ?? 4C 8B ?? ?? ?? ?? ?? ?? 4C 8B ?? 49 C1");
CINEMATICSASPECTaddress = Memory::aob_scan(gameExecutable, CinematicsAspectStringObfuscated.decrypt(), PAGE_EXECUTE_READ);
CINEMATICSASPECTaddress = Memory::AOBScan(gameExecutable, CinematicsAspectStringObfuscated.decrypt(), PAGE_EXECUTE_READ);
if (!CINEMATICSASPECTaddress)
logger->warn("Cinematics aspect ratio signature not found. Maybe your game has been updated and is no more compatible with this plugin.");
@@ -116,7 +116,7 @@ extern "C" __declspec(dllexport) void SetFixEnabled(bool enabled, bool init)
}
if (Aspectaddress == nullptr) {
constexpr auto AspectStringObfuscated = make_obfuscated<0x4A>("44 8B ?? ?? ?? ?? ?? 48 ?? ?? 48 89 ?? ?? ?? ?? ?? E8 ?? ?? ?? ?? C5");
Aspectaddress = Memory::aob_scan(gameExecutable, AspectStringObfuscated.decrypt(), PAGE_EXECUTE_READ);
Aspectaddress = Memory::AOBScan(gameExecutable, AspectStringObfuscated.decrypt(), PAGE_EXECUTE_READ);
if (!Aspectaddress)
logger->warn("Aspect ratio signature not found. Maybe your game has been updated and is no more compatible with this plugin.");
@@ -127,7 +127,7 @@ extern "C" __declspec(dllexport) void SetFixEnabled(bool enabled, bool init)
}
if (DOFaddress == nullptr) {
constexpr auto DOFStringObfuscated = make_obfuscated<0x4A>("41 8B 87 ?? ?? ?? ?? 41 89 86 ?? ?? ?? ?? 41 C7 86");
DOFaddress = Memory::aob_scan(gameExecutable, DOFStringObfuscated.decrypt(), PAGE_EXECUTE_READ);
DOFaddress = Memory::AOBScan(gameExecutable, DOFStringObfuscated.decrypt(), PAGE_EXECUTE_READ);
if (!DOFaddress)
logger->warn("DOF signature not found. Maybe your game has been updated and is no more compatible with this plugin.");
@@ -138,11 +138,11 @@ extern "C" __declspec(dllexport) void SetFixEnabled(bool enabled, bool init)
if (EFFECTSaddress == nullptr) {
if (gameExecutable == "u4.exe") {
auto EffectsStringObfuscated = make_obfuscated<0x4A>("41 8B 86 ?? ?? ?? ?? 89 86 ?? ?? ?? ?? 41 8B 86 ?? ?? ?? ?? 89 86 ?? ?? ?? ?? 41 8B 86 ?? ?? ?? ?? 89 86 ?? ?? ?? ?? 41 8B 87");
EFFECTSaddress = Memory::aob_scan(gameExecutable, EffectsStringObfuscated.decrypt(), PAGE_EXECUTE_READ);
EFFECTSaddress = Memory::AOBScan(gameExecutable, EffectsStringObfuscated.decrypt(), PAGE_EXECUTE_READ);
}
else {
auto EffectsStringObfuscated = make_obfuscated<0x4A>("41 8B 87 ?? ?? ?? ?? 89 86 ?? ?? ?? ?? 41 8B 87 ?? ?? ?? ?? 89 86 ?? ?? ?? ?? 41 8B 87 ?? ?? ?? ?? 89 86 ?? ?? ?? ?? 41 8B 86");
EFFECTSaddress = Memory::aob_scan(gameExecutable, EffectsStringObfuscated.decrypt(), PAGE_EXECUTE_READ);
EFFECTSaddress = Memory::AOBScan(gameExecutable, EffectsStringObfuscated.decrypt(), PAGE_EXECUTE_READ);
}
if (!EFFECTSaddress)