-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
56 lines (49 loc) · 1.99 KB
/
Copy pathmain.cpp
File metadata and controls
56 lines (49 loc) · 1.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/**
* SetupTrainer - Main Entry Point
*
* This is the main entry point for the SetupTrainer application.
* It initializes the trainer, attaches to the game process, and runs the main loop.
*
* @version 1.0
* @date 2026-08-21
*/
#include <iostream>
#include <thread>
#include <chrono>
#include <Windows.h>
#include "trainer.h"
int main() {
// Display banner
std::cout << "========================================" << std::endl;
std::cout << " SetupTrainer v1.0 - Pax Autocratica " << std::endl;
std::cout << "========================================" << std::endl;
std::cout << "[*] Waiting for game process..." << std::endl;
// Create trainer instance
Trainer trainer;
// Wait for the game process to start
// Retry every second until the game is found
while (!trainer.AttachToGame()) {
std::this_thread::sleep_for(std::chrono::milliseconds(1000));
}
// Display hotkey information
std::cout << "[+] Game process found!" << std::endl;
std::cout << "[+] Press F1 to open menu" << std::endl;
std::cout << "[+] Press F2 to toggle God Mode" << std::endl;
std::cout << "[+] Press F3 to toggle Infinite Resources" << std::endl;
std::cout << "[+] Press F4 to toggle One-Hit Kill" << std::endl;
std::cout << "[+] Press F5 to teleport to saved point" << std::endl;
std::cout << "[+] Press F6 to save position" << std::endl;
std::cout << "[+] Press F7 to freeze enemies" << std::endl;
std::cout << "[+] Press F8 to open item spawner" << std::endl;
std::cout << "[+] Press F9 to toggle Noclip" << std::endl;
std::cout << "[+] Press F10 to reload config" << std::endl;
std::cout << "[+] Press Insert to toggle HUD" << std::endl;
std::cout << "[+] Press PageUp/PageDown to adjust damage" << std::endl;
// Main application loop
// Runs at approximately 60 FPS (16ms per frame)
while (true) {
trainer.Update();
std::this_thread::sleep_for(std::chrono::milliseconds(16));
}
return 0;
}