-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCompEvo4.dpr
More file actions
199 lines (196 loc) · 7.62 KB
/
CompEvo4.dpr
File metadata and controls
199 lines (196 loc) · 7.62 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
program CompEvo4;
uses
Forms,
inifiles,
Windows,
SysUtils,
Classes,
Main in 'Main.pas' {MainForm},
Buy in 'Buy.pas' {Comp},
Soft in 'Soft.pas' {Softw},
Work in 'Work.pas' {Wrks},
Welc in 'Welc.pas' {Welcome},
Test in 'Test.pas' {Tst},
Param in 'Param.pas',
News in 'News.pas' {Nws},
Anti in 'Anti.pas' {Antiv},
Internet in 'Internet.pas' {Inet},
About in 'About.pas' {Abt},
Rec in 'Rec.pas' {Records},
Inetwork in 'Inetwork.pas' {Inetwrk},
Hist in 'Hist.pas' {History},
Instal in 'Instal.pas' {Install},
Harry in 'Harry.pas' {Happy},
Banks in 'Banks.pas' {Bank},
xk in 'xk.pas' {Xak},
Downl in 'Downl.pas' {Down},
Skn in 'Skn.pas' {ChSkin},
Prate in 'Prate.pas' {Pirate},
Develop in 'Develop.pas' {Development},
Chts in 'Chts.pas' {Cheats},
SoftSel in 'SoftSel.pas' {SoftSelect},
Monits in 'Monits.pas' {Compl},
Overclock in 'Overclock.pas' {Clock},
BiosUpgrade in 'BiosUpgrade.pas' {Bios},
Games in 'Games.pas' {Game},
VidClock in 'VidClock.pas' {Vclock},
EntWork in 'EntWork.pas' {Ext},
Plugins in 'Plugins.pas' {Plugs},
Browsing in 'Browsing.pas' {Browse},
Tecnic in 'Tecnic.pas' {Technics},
xModule in 'xModule.pas' {xForm},
UForm in 'UForm.pas' {UpdateForm},
PartitionMagic in 'PartitionMagic.pas' {Partition},
PartitionCreate in 'PartitionCreate.pas' {CreatePart},
LoadOS in 'LoadOS.pas' {Loading},
Auction in 'Auction.pas' {ICQSell};
{$R *.res}
var
OS:TOSVersionInfo;
begin
Application.Initialize;
GetDir(0,dir);
Application.Title := 'Êîìïüþòåðíàÿ ýâîëþöèÿ 4';
Application.CreateForm(TMainForm, MainForm);
Application.CreateForm(TComp, Comp);
Application.CreateForm(TSoftw, Softw);
Application.CreateForm(TWrks, Wrks);
Application.CreateForm(TTst, Tst);
Application.CreateForm(TNws, Nws);
Application.CreateForm(TInet, Inet);
Application.CreateForm(TInetwrk, Inetwrk);
Application.CreateForm(THappy, Happy);
Application.CreateForm(TBank, Bank);
Application.CreateForm(TXak, Xak);
Application.CreateForm(TPirate, Pirate);
Application.CreateForm(TDevelopment, Development);
Application.CreateForm(TSoftSelect, SoftSelect);
Application.CreateForm(TCompl, Compl);
Application.CreateForm(TClock, Clock);
Application.CreateForm(TGame, Game);
Application.CreateForm(TVclock, Vclock);
Application.CreateForm(TExt, Ext);
Application.CreateForm(TBrowse, Browse);
Application.CreateForm(TTechnics, Technics);
Application.CreateForm(TxForm, xForm);
Application.CreateForm(TUpdateForm, UpdateForm);
Application.CreateForm(TPartition, Partition);
Application.CreateForm(TICQSell, ICQSell);
Application.CreateForm(TWelcome, Welcome);
Application.CreateForm(TLoading, Loading);
Os.dwOSVersionInfoSize:=SizeOf(OS);
GetVersionEx(OS);
Welcome.Image1.Picture.LoadFromFile(dir+'\Images\Welcome.jpg');
Nws.Image1.Picture.LoadFromFile(dir+'\Images\News.jpg');
Inet.Image1.Picture.LoadFromFile(dir+'\Images\Inet.jpg');
Development.Image1.Picture.LoadFromFile(dir+'\Images\Develop.jpg');
Comp.Image1.Picture.LoadFromFile(dir+'\Images\Comp.jpg');
Softw.Image1.Picture.LoadFromFile(dir+'\Images\Soft.jpg');
Wrks.Image1.Picture.LoadFromFile(dir+'\Images\Work.jpg');
Happy.Image1.Picture.LoadFromFile(dir+'\Images\Rest.jpg');
Bank.Image1.Picture.LoadFromFile(dir+'\Images\Bank.jpg');
Clock.Image1.Picture.LoadFromFile(dir+'\Images\Motherboard.jpg');
Game.Image1.Picture.LoadFromFile(dir+'\Images\Games.jpg');
Vclock.Image1.Picture.LoadFromFile(dir+'\Images\Videoboard.jpg');
Ext.Image1.Picture.LoadFromFile(dir+'\Images\Printer.jpg');
Tst.Image1.Picture.LoadFromFile(dir+'\Images\Testing.jpg');
xak.Image1.Picture.LoadFromFile(dir+'\Images\Hacking.jpg');
Pirate.Image1.Picture.LoadFromFile(dir+'\Images\Pirate.jpg');
xForm.Image1.Picture.LoadFromFile(dir+'\Images\xOverclocking.jpg');
Technics.Image1.Picture.LoadFromFile(dir+'\Images\House.jpg');
UpdateForm.Image1.Picture.LoadFromFile(dir+'\Images\OSUpdate.jpg');
Partition.Image1.Picture.LoadFromFile(dir+'\Images\Harddisk.jpg');
Loading.Image1.Picture.LoadFromFile(dir+'\Images\Monitor.jpg');
ICQSell.Image1.Picture.LoadFromFile(dir+'\Images\Auction.jpg');
MainForm.SpamMessages.Lines.LoadFromFile(dir+'\Inf\Spam.inf');
MainForm.NewsTicker.Lines.LoadFromFile(dir+'\Inf\News.inf');
Config:=Tinifile.Create(dir+'\Config.ini');
sFile:=dir+'\Skins\'+config.ReadString('Options','Skin','Keramik.ces');
MainForm.PlayList.Directory:=dir+'\Music';
MainForm.PlayList.Mask:=config.ReadString('Options','MusicFormats','*.mid;*.rmi;*.midi');
MainForm.PlayList.ItemIndex:=0;
MainForm.MediaPlayer1.FileName:=dir+'\Music\'+MainForm.PlayList.Items.Strings[MainForm.PlayList.ItemIndex];
If config.ReadInteger('Options','Music',1)=1 then begin
MainForm.MediaPlayer1.Open;
MainForm.MediaPlayer1.Play;
MainForm.N18.Checked:=true;
end;
If config.ReadInteger('Options','AutoSave',0)=1 then
MainForm.N15.Checked:=true
else
MainForm.N15.Checked:=false;
If (config.ReadInteger('Options','WindowMode',1)=0) or ((Screen.Width<=800) and (Screen.Height<=600)) then begin
If (Screen.Width<=800) and (Screen.Height<=600) then begin
MainForm.N19.Checked:=false;
MainForm.N19.Enabled:=false;
end
else
begin
MainForm.N19.Enabled:=true;
MainForm.N19.Checked:=false;
end;
ZeroMemory(@dm, sizeof(TDEVMODE));
dm.dmSize := sizeof(TDEVMODE);
MainForm.BorderStyle:=bsNone;
dm.dmPelsWidth := 800;
MainForm.ClientWidth:=800;
dm.dmPelsHeight := 600;
MainForm.ClientHeight:=600;
dm.dmFields := DM_PELSWIDTH or DM_PELSHEIGHT;
ChangeDisplaySettings(dm, 0);
MainForm.N26.Enabled:=false;
Application.CreateForm(TForm, Temp);
Temp.Width:=800;
Temp.Height:=600;
Temp.Position:=poScreenCenter;
Temp.BorderStyle:=bsNone;
Temp.Color:=0000000;
Temp.Show;
end
else
begin
If os.dwMajorVersion>=5 then
MainForm.N26.Enabled:=true;
TransPercent:= 255 - 255 * config.ReadInteger('Options','Transparency',30) div 100;
If config.ReadInteger('Options','Transparent',0)=1 then begin
MainForm.AlphaBlend := true;
MainForm.AlphaBlendValue := TransPercent;
MainForm.N26.Enabled:=true;
MainForm.N26.Checked:=true;
end;
end;
EndYear:=config.ReadInteger('Options','EndYear',2005);
Year:=config.ReadInteger('Options','StartYear',2001);
Skin:=Tinifile.Create(sFile);
MainForm.ChangeSkin.Execute;
HackPrograms:=TStringList.Create;
Compl.Image1.Stretch:=Config.ReadBool('Options','StretchThumbnails',False);
If config.ReadInteger('Options','AddonVersion',0)=1 then
Welcome.Label2.Caption:=Welcome.Label2.Caption+' Addon by '+Config.ReadString('Options','AddonCreator','');
If config.ReadInteger('Options','News',0)=1 then begin
ShowNews:=true;
MainForm.N25.Checked:=true;
end
else
begin
ShowNews:=false;
MainForm.N25.Checked:=false;
end;
If config.ReadInteger('Options','UseSystray',0)=1 then begin
MainForm.MyTray.Enabled:=true;
MainForm.MyTray.IconVisible:=true;
MainForm.MyTray.MinimizeToTray:=true;
end
else
MainForm.MyTray.Free;
ShowHelp:=Config.ReadBool('Options','ShowHelpOnNewGame',False);
DebugVersion:=Config.ReadBool('Options','DebugVersion',False);
If FileExists(dir+'\Unzdll.dll') and FileExists(dir+'\Config.ini') and FileExists(dir+'\Zipdll.dll') and FileExists(dir+'\History.txt') then begin
Welcome.ShowModal;
MainForm.Hide;
ClearTempFiles;
Application.Run;
end
else
Application.MessageBox('Îòñóòñòâóþò ôàéëû íåîáõîäèìûå äëÿ çàïóñêà èãðû','Ïîìîùü!',MB_ICONSTOP);
end.