diff --git a/src/runner/launcher/html/html_frame.cpp b/src/runner/launcher/html/html_frame.cpp
index cd638fb..2588d09 100644
--- a/src/runner/launcher/html/html_frame.cpp
+++ b/src/runner/launcher/html/html_frame.cpp
@@ -35,8 +35,8 @@ html_frame::html_frame()
if (needs_restart)
{
- //utils::nt::relaunch_self();
- //utils::nt::terminate(0);
+ utils::nt::relaunch_self();
+ utils::nt::terminate(0);
}
}
diff --git a/src/runner/main.cpp b/src/runner/main.cpp
index b47a58f..a35e478 100644
--- a/src/runner/main.cpp
+++ b/src/runner/main.cpp
@@ -78,7 +78,8 @@ std::filesystem::path extract_driver()
void unsafe_main(const int /*argc*/, char* /*argv*/[])
{
- launcher().run();
+ //launcher().run();
+ //return;
const auto driver_file = extract_driver();
@@ -91,7 +92,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
@@ -109,17 +110,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));
- */
+ /*
+ 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();
@@ -150,5 +151,13 @@ int main(const int argc, char* argv[])
int __stdcall WinMain(HINSTANCE, HINSTANCE, char*, int)
{
+ AllocConsole();
+ AttachConsole(GetCurrentProcessId());
+
+ FILE* fp;
+ freopen_s(&fp, "conin$", "r", stdin);
+ freopen_s(&fp, "conout$", "w", stdout);
+ freopen_s(&fp, "conout$", "w", stderr);
+
return main(__argc, __argv);
}