-
Notifications
You must be signed in to change notification settings - Fork 0
/
LBAPackEd.dpr
76 lines (69 loc) · 2.16 KB
/
LBAPackEd.dpr
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
//******************************************************************************
// LBA Package Editor - editing hqr, ile, obl, vox packages from
// Little Big Adventure 1 & 2
//
// This is main program file.
//
// Copyright (C) Zink
// e-mail: zink@poczta.onet.pl
//
// This source code is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This source code is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License (License.txt) for more details.
//******************************************************************************
program LBAPackEd;
uses
Forms,
ExtCtrls,
Windows,
Controls,
SysUtils,
LBAPackEd1 in 'LBAPackEd1.pas' {Form1},
About in 'About.pas' {Form2},
files in 'files.pas',
Settings in 'Settings.pas' {fSettings},
DePack in 'DePack.pas',
ExtractDlg in 'ExtractDlg.pas' {fExtract},
Info in 'Info.pas',
Tools in 'Tools.pas' {ToolsForm},
Dialog in 'Dialog.pas' {DialogForm},
ProgBar in 'ProgBar.pas' {ProgBarForm},
CompMods in '..\libs\CompMods.pas',
Hint in 'Hint.pas' {HintForm};
{$R Icons.res}
{$R *.res}
begin
Application.Initialize;
Application.CreateForm(TForm1, Form1);
Application.CreateForm(TToolsForm, ToolsForm);
Application.CreateForm(TDialogForm, DialogForm);
Application.CreateForm(TProgBarForm, ProgBarForm);
Application.HintHidePause:=60000;
Application.ShowHint:=True;
//Application.CreateForm(TForm2, Form2);
Application.CreateForm(TfSettings, fSettings);
Application.CreateForm(TfExtract, fExtract);
LoadSettings;
RefreshDirs;
//SetAssociations; //it caused problems on Vista
if ParamCount=0 then begin
try
If fSettings.cbOpenLast.Checked and (LastProjectPath<>'') then
OpenProject(LastProjectPath);
except
end;
end
else
try
OpenParam(ParamStr(1));
except
end;
UpdateComponents;
Application.Run;
end.