-
Notifications
You must be signed in to change notification settings - Fork 1
/
IGI_DebugMode.cpp
42 lines (33 loc) · 1.06 KB
/
IGI_DebugMode.cpp
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
// Project I.G.I DebugMode. Enables DebugMode in IGI must be execute in CheatEngine Scripts.
// Written by IGI-ResearchDevs - HM.
// Using GTLibc library.
#include "GTLibc.hpp"
using namespace GTLIBC;
// Game details
#define GAME_NAME "igi"
// Memory addresses
#define DBG_ENABLE 0x005BDC1C
#define DBG_ALLOC 0x00A5EA75
#define DBG_ADDR 0x005C8BF4
#define DBG_PLAYER_INFO 0x0056DF94
#define DBG_FONT 0x0054D958
#define DBG_FONT_BIG "LOCAL:computer/font1.fnt"
#define DBG_FONT_DEBUG "LOCAL:debug.fnt"
int main() {
GTLibc gtlibc(true);
DWORD gameBaseAddress;
// Find the game process
HANDLE gameHandle = gtlibc.FindGameProcess(GAME_NAME);
if (gameHandle == NULL) {
std::cout << "Game process not found." << std::endl;
return 1;
}
gameBaseAddress = gtlibc.GetGameBaseAddress();
// Enable debug
gtlibc.WriteAddress(DBG_ALLOC, DBG_ADDR);
gtlibc.WriteString(DBG_FONT, DBG_FONT_BIG);
gtlibc.WriteAddress(DBG_FONT + 24, 0x0);
gtlibc.WriteAddress(DBG_ENABLE, 1);
gtlibc.WriteAddress(DBG_PLAYER_INFO, 1);
return 0;
}