From ed9ed1da2f2fa9ff265aac62981acd513a40f6d3 Mon Sep 17 00:00:00 2001 From: momo5502 Date: Sat, 7 May 2022 16:54:18 +0200 Subject: [PATCH] T6 tests --- src/runner/main.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/runner/main.cpp b/src/runner/main.cpp index f6cdaab..1980cf8 100644 --- a/src/runner/main.cpp +++ b/src/runner/main.cpp @@ -87,6 +87,7 @@ void unsafe_main(const int /*argc*/, char* /*argv*/[]) const auto pid = atoi(pid_str.data()); + // IW5 insert_nop(driver_device, pid, 0x4488A8, 2); // Force calling CG_DrawFriendOrFoeTargetBoxes insert_nop(driver_device, pid, 0x47F6C7, 2); // Ignore blind-eye perks @@ -104,7 +105,17 @@ void unsafe_main(const int /*argc*/, char* /*argv*/[]) constexpr uint8_t data3[] = {0xEB}; patch_data(driver_device, pid, 0x443A2A, data3, sizeof(data3)); patch_data(driver_device, pid, 0x443978, data3, sizeof(data3)); + +/* + insert_nop(driver_device, pid, 0x441D5A, 6); + insert_nop(driver_device, pid, 0x525104, 2); + insert_nop(driver_device, pid, 0x525121, 2); + constexpr uint8_t data3[] = {0xEB}; + patch_data(driver_device, pid, 0x525087, data3, sizeof(data3)); + patch_data(driver_device, pid, 0x524E7F, data3, sizeof(data3)); + patch_data(driver_device, pid, 0x52512C, data3, sizeof(data3)); + */ printf("Press any key to disable all hooks!\n"); (void)_getch();