-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathzError_engine.d
More file actions
86 lines (68 loc) · 2.33 KB
/
zError_engine.d
File metadata and controls
86 lines (68 loc) · 2.33 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
func int zERROR_GetFilterLevel () {
//0x008699D8 class zERROR zerr
const int zerr_G1 = 8821208;
//0x008CDCD0 class zERROR zerr
const int zerr_G2 = 9231568;
var int zerr; zerr = MEMINT_SwitchG1G2 (zerr_G1, zerr_G2);
//0x0057E350 public: int __thiscall zERROR::GetFilterLevel(void)
const int zERROR__GetFilterLevel_G1 = 5759824;
//0x0059D130 public: int __thiscall zERROR::GetFilterLevel(void)
const int zERROR__GetFilterLevel_G2 = 5886256;
var int retVal;
const int call = 0;
if (CALL_Begin(call)) {
CALL_PutRetValTo (_@ (retVal));
CALL__thiscall (_@ (zerr), MEMINT_SwitchG1G2 (zERROR__GetFilterLevel_G1, zERROR__GetFilterLevel_G2));
call = CALL_End();
};
return + retVal;
};
func void zERROR_SetFilterLevel (var int errorLevel) {
//0x008699D8 class zERROR zerr
const int zerr_G1 = 8821208;
//0x008CDCD0 class zERROR zerr
const int zerr_G2 = 9231568;
var int zerr; zerr = MEMINT_SwitchG1G2 (zerr_G1, zerr_G2);
//0x00449680 public: void __thiscall zERROR::SetFilterLevel(int)
const int zERROR__SetFilterLevel_G1 = 4494976;
//0x0044DDA0 public: void __thiscall zERROR::SetFilterLevel(int)
const int zERROR__SetFilterLevel_G2 = 4513184;
const int call = 0;
if (CALL_Begin(call)) {
CALL_IntParam (_@ (errorLevel));
CALL__thiscall (_@ (zerr), MEMINT_SwitchG1G2 (zERROR__SetFilterLevel_G1, zERROR__SetFilterLevel_G2));
call = CALL_End();
};
};
func int zERROR_SearchForSpy () {
//0x008699D8 class zERROR zerr
const int zerr_G1 = 8821208;
//0x008CDCD0 class zERROR zerr
const int zerr_G2 = 9231568;
var int zerr; zerr = MEMINT_SwitchG1G2 (zerr_G1, zerr_G2);
//0x00449EB0 public: bool __thiscall zERROR::SearchForSpy(void)
const int zERROR__SearchForSpy_G1 = 4497072;
//0x0044E640 public: bool __thiscall zERROR::SearchForSpy(void)
const int zERROR__SearchForSpy_G2 = 4515392;
var int retVal;
const int call = 0;
if (CALL_Begin(call)) {
CALL_PutRetValTo (_@ (retVal));
CALL__thiscall (_@ (zerr), MEMINT_SwitchG1G2 (zERROR__SearchForSpy_G1, zERROR__SearchForSpy_G2));
call = CALL_End();
};
return + retVal;
};
func void zSpy_Info (var string s) {
//Backup error level
var int errorLevel; errorLevel = zERROR_GetFilterLevel ();
//Set error level to 1 (minimum)
if (errorLevel < 1) {
zERROR_SetFilterLevel (1);
};
MEM_Info (s);
//Restore error level
if (errorLevel < 1) {
zERROR_SetFilterLevel (errorLevel);
};
};