This commit is contained in:
Maurice Heumann 2022-12-27 09:39:50 +01:00
parent 65417e3e7a
commit 95120b73ab

View File

@ -213,7 +213,7 @@ void report_records(const std::atomic_bool& flag, const driver_device& driver_de
void unsafe_main(const int /*argc*/, char* /*argv*/[]) void unsafe_main(const int /*argc*/, char* /*argv*/[])
{ {
{ //{
const auto driver_file = extract_driver(); const auto driver_file = extract_driver();
driver driver{driver_file, "MomoLul"}; driver driver{driver_file, "MomoLul"};
@ -229,7 +229,7 @@ void unsafe_main(const int /*argc*/, char* /*argv*/[])
return; return;
} }
printf("Reading modules...\n"); /*printf("Reading modules...\n");
const auto modules = process::get_modules(proc); const auto modules = process::get_modules(proc);
printf("Found %zu modules:\n", modules.size()); printf("Found %zu modules:\n", modules.size());
@ -291,9 +291,9 @@ void unsafe_main(const int /*argc*/, char* /*argv*/[])
printf("\nWatching stopped.\n"); printf("\nWatching stopped.\n");
_getch(); _getch();
return; return;*/
/*
// IW5 // IW5
insert_nop(driver_device, pid, 0x4488A8, 2); // Force calling CG_DrawFriendOrFoeTargetBoxes insert_nop(driver_device, pid, 0x4488A8, 2); // Force calling CG_DrawFriendOrFoeTargetBoxes
insert_nop(driver_device, pid, 0x47F6C7, 2); // Ignore blind-eye perks insert_nop(driver_device, pid, 0x47F6C7, 2); // Ignore blind-eye perks
@ -311,7 +311,7 @@ void unsafe_main(const int /*argc*/, char* /*argv*/[])
constexpr uint8_t data3[] = {0xEB}; constexpr uint8_t data3[] = {0xEB};
patch_data(driver_device, pid, 0x443A2A, data3, sizeof(data3)); patch_data(driver_device, pid, 0x443A2A, data3, sizeof(data3));
patch_data(driver_device, pid, 0x443978, data3, sizeof(data3)); patch_data(driver_device, pid, 0x443978, data3, sizeof(data3));
*/
/* /*
insert_nop(driver_device, pid, 0x441D5A, 6); insert_nop(driver_device, pid, 0x441D5A, 6);
@ -324,13 +324,13 @@ void unsafe_main(const int /*argc*/, char* /*argv*/[])
patch_data(driver_device, pid, 0x52512C, data3, sizeof(data3)); patch_data(driver_device, pid, 0x52512C, data3, sizeof(data3));
*/ */
/*printf("Press any key to disable all hooks!\n"); printf("Press any key to disable all hooks!\n");
(void)_getch(); (void)_getch();
remove_hooks(driver_device); remove_hooks(driver_device);
printf("Press any key to exit!\n"); printf("Press any key to exit!\n");
(void)_getch();*/ (void)_getch();
} }
int main(const int argc, char* argv[]) int main(const int argc, char* argv[])