-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfrmMain.pas
More file actions
71 lines (50 loc) · 1.13 KB
/
frmMain.pas
File metadata and controls
71 lines (50 loc) · 1.13 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
unit frmMain;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, BSATypes, BSAUnpack;
type
TForm5 = class(TForm)
Button1: TButton;
Open: TButton;
ListBox1: TListBox;
Button2: TButton;
procedure Button1Click(Sender: TObject);
procedure OpenClick(Sender: TObject);
procedure FormCreate(Sender: TObject);
procedure Button2Click(Sender: TObject);
procedure FormDestroy(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form5: TForm5;
bsa : TBSAUnpack;
implementation
{$R *.dfm}
procedure TForm5.Button1Click(Sender: TObject);
begin
bsa.ExtractToFile(ListBox1.Items[ListBox1.ItemIndex], 'C:\');
end;
procedure TForm5.Button2Click(Sender: TObject);
begin
bsa.Close;
end;
procedure TForm5.FormCreate(Sender: TObject);
begin
bsa := TBSAUnpack.Create;
end;
procedure TForm5.FormDestroy(Sender: TObject);
begin
bsa.Free;
end;
procedure TForm5.OpenClick(Sender: TObject);
begin
ListBox1.Clear;
bsa.Filename := 'archive.bsa';
bsa.Open;
bsa.getFileList('\', ListBox1.Items);
end;
end.