External Trigger not injecting.
No errors or anything but when I launch the executable it just waits to be injected.
Code:
int main()
{
Module Client, Engine;
while (!debugger.Attach("csgo.exe")) {
std::cout << ".";
Sleep(500);
}
Client = debugger.GetModule("Client.dll");
dwClient = Client.dwBase;
Engine = debugger.GetModule("Engine.dll");
dwEngine = Engine.dwBase;
CreateThread(0, 0, &TriggerThread, 0, 0, 0);
std::cout << "Trigger is running...";
while (1)
{
if (GetAsyncKeyState(VK_F4)) {
exit(0);
}
}
}
