-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathLBATxt.dpr
64 lines (57 loc) · 1.94 KB
/
LBATxt.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
//******************************************************************************
// LBA Text Editor 2 - editing lbt (text) files 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 LBATxt;
uses
Forms,
SysUtils,
IniFiles,
LBATxt1 in 'LBATxt1.pas' {Form1},
Editor in 'Editor.pas' {TextForm},
lang in 'lang.pas',
ConvTbl in 'ConvTbl.pas' {ConvForm},
settings in 'settings.pas',
Find in 'Find.pas' {FindForm},
Preview in 'Preview.pas' {PrevForm},
IntEditor in 'IntEditor.pas' {IntForm},
files in 'files.pas',
CompMods in '..\libs\CompMods.pas',
XML in 'XML.pas',
Utils in 'Utils.pas';
{$R *.RES}
{$R Icon.res}
begin
Application.Initialize;
Application.Title := 'LBA Text Editor 2';
Application.CreateForm(TForm1, Form1);
Application.CreateForm(TTextForm, TextForm);
Application.CreateForm(TConvForm, ConvForm);
Application.CreateForm(TFindForm, FindForm);
Application.CreateForm(TPrevForm, PrevForm);
Application.CreateForm(TIntForm, IntForm);
SetLength(Entries, 2);
LoadSettings();
Form1.dOpen.InitialDir:= CurrentDir;
Form1.dOpenLang.InitialDir:= ExtractFilePath(Application.ExeName);
if ParamCount > 0 then
if FileExists(ParamStr(1)) then
LoadTexts(ParamStr(1));
UpdateComponents();
Application.Run;
SaveSettings();
end.