Skip to content

Commit abca72e

Browse files
committed
uploaded source code
1 parent 0ab7976 commit abca72e

File tree

2,182 files changed

+788127
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,182 files changed

+788127
-0
lines changed

.github/FUNDING.yml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
patreon: cheatengine

.gitignore

+65
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
Cheat Engine/lib
2+
Cheat Engine/backup
3+
Cheat Engine/bin
4+
Cheat Engine/test
5+
Cheat Engine/Tutorial/backup
6+
Cheat Engine/Tutorial/unitbin
7+
Cheat Engine/debuggertest/backup
8+
Cheat Engine/dbk32/backup
9+
Cheat Engine/betterControls/backup
10+
Cheat Engine/luamac
11+
Cheat Engine/macsrc
12+
.DS_Store
13+
*.lrj
14+
*.o
15+
*.ppu
16+
*.rsj
17+
Cheat Engine/cheatengine.lps
18+
Cheat Engine/cheatengine.res
19+
Cheat Engine/MonoDataCollector/.vs/MonoDataCollector/v17/.suo
20+
Cheat Engine/MonoDataCollector/.vs/MonoDataCollector/v17/Browse.VC.db
21+
Cheat Engine/MonoDataCollector/.vs/MonoDataCollector/v17/Browse.VC.db-shm
22+
Cheat Engine/MonoDataCollector/.vs/MonoDataCollector/v17/Browse.VC.db-wal
23+
Cheat Engine/MonoDataCollector/.vs/MonoDataCollector/v17/Browse.VC.opendb
24+
Cheat Engine/MonoDataCollector/.vs/MonoDataCollector/v17/ipch/AutoPCH/5f7044b1fc121c20/PIPESERVER.ipch
25+
Cheat Engine/MonoDataCollector/.vs/MonoDataCollector/v17/ipch/AutoPCH/71930d25bb2a9c5b/MONODATACOLLECTOR.ipch
26+
Cheat Engine/MonoDataCollector/.vs/MonoDataCollector/v17/ipch/AutoPCH/834c43f840118065/MONODATACOLLECTOR.ipch
27+
Cheat Engine/MonoDataCollector/MonoDataCollector/MonoDataCollector.vcxproj
28+
Cheat Engine/MonoDataCollector/MonoDataCollector/MonoDataCollector.vcxproj.user
29+
Cheat Engine/MonoDataCollector/MonoDataCollector/x64/Release/CMemStream.obj
30+
Cheat Engine/MonoDataCollector/MonoDataCollector/x64/Release/dllmain.obj
31+
Cheat Engine/MonoDataCollector/MonoDataCollector/x64/Release/MonoData.941726A9.tlog/CL.command.1.tlog
32+
Cheat Engine/MonoDataCollector/MonoDataCollector/x64/Release/MonoData.941726A9.tlog/CL.read.1.tlog
33+
Cheat Engine/MonoDataCollector/MonoDataCollector/x64/Release/MonoData.941726A9.tlog/CL.write.1.tlog
34+
Cheat Engine/MonoDataCollector/MonoDataCollector/x64/Release/MonoData.941726A9.tlog/link.command.1.tlog
35+
Cheat Engine/MonoDataCollector/MonoDataCollector/x64/Release/MonoData.941726A9.tlog/link.read.1.tlog
36+
Cheat Engine/MonoDataCollector/MonoDataCollector/x64/Release/MonoData.941726A9.tlog/link.write.1.tlog
37+
Cheat Engine/MonoDataCollector/MonoDataCollector/x64/Release/MonoData.941726A9.tlog/MonoDataCollector.lastbuildstate
38+
Cheat Engine/MonoDataCollector/MonoDataCollector/x64/Release/MonoData.941726A9.tlog/MonoDataCollector.write.1u.tlog
39+
Cheat Engine/MonoDataCollector/MonoDataCollector/x64/Release/MonoDataCollector.log
40+
Cheat Engine/MonoDataCollector/MonoDataCollector/x64/Release/MonoDataCollector.obj
41+
Cheat Engine/MonoDataCollector/MonoDataCollector/x64/Release/MonoDataCollector64.dll.recipe
42+
Cheat Engine/MonoDataCollector/MonoDataCollector/x64/Release/MonoDataCollector64.iobj
43+
Cheat Engine/MonoDataCollector/MonoDataCollector/x64/Release/MonoDataCollector64.ipdb
44+
Cheat Engine/MonoDataCollector/MonoDataCollector/x64/Release/MonoDataCollector64.pch
45+
Cheat Engine/MonoDataCollector/MonoDataCollector/x64/Release/Pipe.obj
46+
Cheat Engine/MonoDataCollector/MonoDataCollector/x64/Release/PipeServer.obj
47+
Cheat Engine/MonoDataCollector/MonoDataCollector/x64/Release/stdafx.obj
48+
Cheat Engine/MonoDataCollector/MonoDataCollector/x64/Release/vc143.pdb
49+
Cheat Engine/MonoDataCollector/MonoDataCollector/MonoDataCollector.vcxproj
50+
Cheat Engine/MonoDataCollector/MonoDataCollector/MonoDataCollector.vcxproj
51+
Cheat Engine/MonoDataCollector/MonoDataCollector/MonoDataCollector.vcxproj
52+
*.vcxproj
53+
Cheat Engine/MonoDataCollector/.vs/MonoDataCollector/v17/ipch/AutoPCH/f68d19c2fab066ca/DLLMAIN.ipch
54+
Cheat Engine/MonoDataCollector/MonoDataCollector/MonoDataCollector.vcxproj
55+
Cheat Engine/MonoDataCollector/MonoDataCollector/x64/Release/MonoDataCollector.vcxproj.FileListAbsolute.txt
56+
Cheat Engine/MonoDataCollector/MonoDataCollector/x64/Release/MonoDataCollector64.Build.CppClean.log
57+
Cheat Engine/MonoDataCollector/MonoDataCollector/MonoDataCollector.vcxproj
58+
Cheat Engine/MonoDataCollector/.vs/MonoDataCollector/v17/ipch/AutoPCH/3d2a0f62d32e0fb5/CMEMSTREAM.ipch
59+
Cheat Engine/MonoDataCollector/.vs/MonoDataCollector/FileContentIndex/62bb0928-9760-4e2d-9c74-b56a96c8718a.vsidx
60+
Cheat Engine/MonoDataCollector/MonoDataCollector/x64/Release/MonoData.941726A9.tlog/Cl.items.tlog
61+
*.tlog
62+
*.vcxproj
63+
*.vsidx
64+
*.lpi
65+
Cheat Engine/MonoDataCollector/MonoDataCollector/MonoDataCollector.vcxproj

.gitmodules

Whitespace-only changes.

Cheat Engine/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.DS_Store
+173
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,173 @@
1+
object frmAPIhookTemplateSettings: TfrmAPIhookTemplateSettings
2+
Left = 528
3+
Height = 187
4+
Top = 335
5+
Width = 334
6+
AutoSize = True
7+
BorderIcons = [biSystemMenu]
8+
BorderStyle = bsDialog
9+
Caption = 'Api hook template'
10+
ClientHeight = 187
11+
ClientWidth = 334
12+
OnCreate = FormCreate
13+
OnShow = FormShow
14+
Position = poScreenCenter
15+
LCLVersion = '2.0.6.0'
16+
object Label1: TLabel
17+
AnchorSideLeft.Control = Owner
18+
AnchorSideTop.Control = Owner
19+
Left = 8
20+
Height = 16
21+
Top = 0
22+
Width = 124
23+
BorderSpacing.Left = 8
24+
Caption = 'Original api address:'
25+
ParentColor = False
26+
end
27+
object Label2: TLabel
28+
AnchorSideLeft.Control = Edit1
29+
AnchorSideTop.Control = Edit1
30+
AnchorSideTop.Side = asrBottom
31+
Left = 8
32+
Height = 16
33+
Top = 37
34+
Width = 104
35+
Caption = 'New api address:'
36+
ParentColor = False
37+
end
38+
object Label3: TLabel
39+
AnchorSideLeft.Control = Label1
40+
AnchorSideTop.Control = Edit2
41+
AnchorSideTop.Side = asrBottom
42+
Left = 8
43+
Height = 16
44+
Top = 78
45+
Width = 290
46+
BorderSpacing.Top = 4
47+
BorderSpacing.Right = 4
48+
Caption = 'Address where to store the new original api call:'
49+
ParentColor = False
50+
end
51+
object Label4: TLabel
52+
AnchorSideLeft.Control = Label1
53+
AnchorSideTop.Control = Label3
54+
AnchorSideTop.Side = asrBottom
55+
Left = 8
56+
Height = 16
57+
Top = 94
58+
Width = 318
59+
BorderSpacing.Right = 4
60+
Caption = '(optional, in case your dll uses a variable for the call)'
61+
ParentColor = False
62+
end
63+
object Label6: TLabel
64+
Left = 136
65+
Height = 1
66+
Top = 16
67+
Width = 1
68+
ParentColor = False
69+
end
70+
object Label5: TLabel
71+
AnchorSideTop.Control = Button1
72+
AnchorSideTop.Side = asrBottom
73+
AnchorSideBottom.Control = Owner
74+
AnchorSideBottom.Side = asrBottom
75+
Left = 8
76+
Height = 16
77+
Top = 156
78+
Width = 324
79+
BorderSpacing.Top = 2
80+
BorderSpacing.Right = 4
81+
BorderSpacing.Bottom = 2
82+
Caption = 'Note: The addresses can also be exportnames of dll''s'
83+
ParentColor = False
84+
WordWrap = True
85+
end
86+
object Edit1: TEdit
87+
AnchorSideLeft.Control = Label1
88+
AnchorSideTop.Control = Label1
89+
AnchorSideTop.Side = asrBottom
90+
AnchorSideRight.Control = Owner
91+
AnchorSideRight.Side = asrBottom
92+
Left = 8
93+
Height = 21
94+
Top = 16
95+
Width = 318
96+
Anchors = [akTop, akLeft, akRight]
97+
BorderSpacing.Right = 8
98+
TabOrder = 0
99+
end
100+
object Edit2: TEdit
101+
AnchorSideLeft.Control = Label2
102+
AnchorSideTop.Control = Label2
103+
AnchorSideTop.Side = asrBottom
104+
AnchorSideRight.Control = Owner
105+
AnchorSideRight.Side = asrBottom
106+
Left = 8
107+
Height = 21
108+
Top = 53
109+
Width = 318
110+
Anchors = [akTop, akLeft, akRight]
111+
BorderSpacing.Right = 8
112+
TabOrder = 1
113+
end
114+
object Edit3: TEdit
115+
AnchorSideLeft.Control = Label4
116+
AnchorSideTop.Control = Label4
117+
AnchorSideTop.Side = asrBottom
118+
AnchorSideRight.Control = Edit1
119+
AnchorSideRight.Side = asrBottom
120+
Left = 8
121+
Height = 21
122+
Top = 110
123+
Width = 318
124+
Anchors = [akTop, akLeft, akRight]
125+
TabOrder = 2
126+
end
127+
object Button1: TButton
128+
AnchorSideTop.Control = Edit3
129+
AnchorSideTop.Side = asrBottom
130+
AnchorSideRight.Control = Panel1
131+
Left = 87
132+
Height = 20
133+
Top = 134
134+
Width = 75
135+
Anchors = [akTop, akRight]
136+
AutoSize = True
137+
BorderSpacing.Top = 3
138+
Caption = 'OK'
139+
Constraints.MinWidth = 75
140+
Default = True
141+
ModalResult = 1
142+
TabOrder = 3
143+
end
144+
object Button2: TButton
145+
AnchorSideLeft.Control = Panel1
146+
AnchorSideLeft.Side = asrBottom
147+
AnchorSideTop.Control = Edit3
148+
AnchorSideTop.Side = asrBottom
149+
Left = 172
150+
Height = 20
151+
Top = 134
152+
Width = 75
153+
AutoSize = True
154+
BorderSpacing.Top = 3
155+
Cancel = True
156+
Caption = 'Cancel'
157+
Constraints.MinWidth = 75
158+
ModalResult = 2
159+
TabOrder = 4
160+
end
161+
object Panel1: TPanel
162+
AnchorSideLeft.Control = Owner
163+
AnchorSideLeft.Side = asrCenter
164+
AnchorSideTop.Control = Edit3
165+
AnchorSideTop.Side = asrBottom
166+
Left = 162
167+
Height = 11
168+
Top = 131
169+
Width = 10
170+
BevelOuter = bvNone
171+
TabOrder = 5
172+
end
173+
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
TFRMAPIHOOKTEMPLATESETTINGS.CAPTION=Api hook template
2+
TFRMAPIHOOKTEMPLATESETTINGS.LABEL1.CAPTION=Original api address:
3+
TFRMAPIHOOKTEMPLATESETTINGS.LABEL2.CAPTION=New api address:
4+
TFRMAPIHOOKTEMPLATESETTINGS.LABEL3.CAPTION=Address where to store the new original api call:
5+
TFRMAPIHOOKTEMPLATESETTINGS.LABEL4.CAPTION=(optional, in case your dll uses a variable for the call)
6+
TFRMAPIHOOKTEMPLATESETTINGS.LABEL5.CAPTION=Note: The addresses can also be exportnames of dll's
7+
TFRMAPIHOOKTEMPLATESETTINGS.BUTTON1.CAPTION=OK
8+
TFRMAPIHOOKTEMPLATESETTINGS.BUTTON2.CAPTION=Cancel
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
unit APIhooktemplatesettingsfrm;
2+
3+
{$MODE Delphi}
4+
5+
interface
6+
7+
uses
8+
LCLIntf, Lmessages, Messages, SysUtils, Classes, Graphics, Controls, Forms,
9+
Dialogs, StdCtrls, LResources, ExtCtrls, betterControls;
10+
11+
type
12+
13+
{ TfrmAPIhookTemplateSettings }
14+
15+
TfrmAPIhookTemplateSettings = class(TForm)
16+
Edit1: TEdit;
17+
Edit2: TEdit;
18+
Edit3: TEdit;
19+
Label1: TLabel;
20+
Label2: TLabel;
21+
Label3: TLabel;
22+
Label4: TLabel;
23+
Label6: TLabel;
24+
Button1: TButton;
25+
Button2: TButton;
26+
Label5: TLabel;
27+
Panel1: TPanel;
28+
procedure FormCreate(Sender: TObject);
29+
procedure FormShow(Sender: TObject);
30+
private
31+
{ Private declarations }
32+
public
33+
{ Public declarations }
34+
end;
35+
36+
implementation
37+
38+
39+
{ TfrmAPIhookTemplateSettings }
40+
41+
procedure TfrmAPIhookTemplateSettings.FormCreate(Sender: TObject);
42+
begin
43+
44+
end;
45+
46+
procedure TfrmAPIhookTemplateSettings.FormShow(Sender: TObject);
47+
begin
48+
button1.autosize:=false;
49+
button2.autosize:=false;
50+
if button1.width<button2.width then
51+
button1.width:=button2.width else button2.width:=button1.width;
52+
end;
53+
54+
initialization
55+
{$i APIhooktemplatesettingsfrm.lrs}
56+
57+
end.

Cheat Engine/AccessCheck.pas

+62
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
unit AccessCheck;
2+
{obsolete, all files are now in the user or temp folder}
3+
4+
{$MODE Delphi}
5+
6+
{
7+
This unit will contain routines to be used for testing and verifying that ce has
8+
the required access needed.
9+
10+
FileAccessTest is the main routine
11+
12+
}
13+
14+
interface
15+
16+
uses LCLIntf, SysUtils, classes, forms, CEFuncProc, NewKernelHandler;
17+
18+
procedure FileAccessTest;
19+
20+
implementation
21+
22+
uses Globals;
23+
24+
resourcestring
25+
rsNoFileCreationRightsOrNoFileOverwriteRights = 'No file creation rights or no file overwrite rights';
26+
rsNoFileModificationRights = 'No file modification rights';
27+
rsNoFileDeletionRights = 'No file deletion rights';
28+
rsNoDeleteRights = 'No delete rights';
29+
rsButYouDoHaveModifyRights = 'But you do have modify rights';
30+
31+
procedure FileAccessTest;
32+
var f: tfilestream;
33+
begin
34+
try
35+
f:=TFilestream.Create(CheatEngineDir+'accesscheck.tmp', fmCreate);
36+
try
37+
f.WriteBuffer(rsNoDeleteRights+#13#10,18);
38+
finally
39+
f.Free;
40+
end;
41+
except
42+
raise exception.Create(rsNoFileCreationRightsOrNoFileOverwriteRights);
43+
end;
44+
45+
try
46+
f:=TFilestream.Create(CheatEngineDir+'accesscheck.tmp', fmOpenReadWrite);
47+
try
48+
f.Seek(0,soFromEnd);
49+
f.WriteBuffer(rsButYouDoHaveModifyRights+#13#10,31);
50+
finally
51+
f.free;
52+
end;
53+
except
54+
raise exception.Create(rsNoFileModificationRights);
55+
end;
56+
57+
if not deletefile(CheatEngineDir+'accesscheck.tmp') then
58+
raise exception.Create(rsNoFileDeletionRights);
59+
60+
end;
61+
62+
end.

Cheat Engine/AddAddress.ddp

51 Bytes
Binary file not shown.

Cheat Engine/AddAddress.lrt

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
TADDFORM.CAPTION=Add address
2+
TADDFORM.LABEL1.CAPTION=Address
3+
TADDFORM.LABEL2.CAPTION=Type
4+
TADDFORM.LABEL3.CAPTION=Description
5+
TADDFORM.EDIT1.TEXT=1
6+
TADDFORM.CBUNICODE.CAPTION=Unicode
7+
TADDFORM.BTNOK.CAPTION=OK
8+
TADDFORM.BTNCANCEL.CAPTION=Cancel
9+
TADDFORM.DESCRIPTION.TEXT=No Description!
10+
TADDFORM.LABEL4.CAPTION=0
11+
TADDFORM.LABEL5.CAPTION=1
12+
TADDFORM.LABEL6.CAPTION=2
13+
TADDFORM.LABEL7.CAPTION=3
14+
TADDFORM.LABEL8.CAPTION=4
15+
TADDFORM.LABEL9.CAPTION=5
16+
TADDFORM.LABEL10.CAPTION=6
17+
TADDFORM.LABEL11.CAPTION=7
18+
TADDFORM.LABEL13.CAPTION=Startbit:
19+
TADDFORM.LABEL14.CAPTION=nrofbits:
20+
TADDFORM.EDIT2.TEXT=1
21+
TADDFORM.NEWADDRESS.TEXT=00400000
22+
TADDFORM.CBPOINTER.CAPTION=Pointer
23+
TADDFORM.BTNADDOFFSET.CAPTION=Add pointer
24+
TADDFORM.BTNREMOVEOFFSET.CAPTION=Remove

Cheat Engine/AdvancedOptionsUnit.ddp

51 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)