-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclient.h
More file actions
25 lines (22 loc) · 781 Bytes
/
client.h
File metadata and controls
25 lines (22 loc) · 781 Bytes
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
#define cls_realtime ((int*)0x4AD3E80) // 0x155F3E0)
#define cls_state ((int*)0x4AD3D60)
#define clc_stringData ((PCHAR)0x495E6F4)
#define clc_stringOffsets ((PINT)0x495C6F4)
#define clc_demoplaying ((PINT)0x4DE960C)
#define cls_numglobalservers ((int*)0x4AD8AA8)
#define cls_pingUpdateSource ((int*)0x4DC39B4)
#define cs0 (clc_stringData + clc_stringOffsets[0])
#define cs1 (clc_stringData + clc_stringOffsets[1])
static bool unlock_client_structure() {
__try {
XUNLOCK((void*)cls_realtime, sizeof(int));
XUNLOCK((void*)cls_state, sizeof(int));
XUNLOCK((void*)clc_demoplaying, 4);
XUNLOCK((void*)cls_numglobalservers, sizeof(int)); // idk if needed
XUNLOCK((void*)cls_pingUpdateSource, sizeof(int)); // idk if needed
}
__except (1) {
return false;
}
return true;
}