-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathiBroadcast.lpr
More file actions
executable file
·63 lines (51 loc) · 1.26 KB
/
iBroadcast.lpr
File metadata and controls
executable file
·63 lines (51 loc) · 1.26 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
program iBroadcast;
{$mode objfpc}{$H+}
{$DEFINE UseCThreads}
uses
{$IFDEF UNIX}{$IFDEF UseCThreads}
cthreads,
{$ENDIF}{$ENDIF}
LibDefine,
Interfaces, // this includes the LCL widgetset
Forms, lazcontrols, mainui, indylaz, dialogs,
{ you can add units after this }
BroadcastAPI, SpectrumVis3D, uniqueinstanceraw, LoadingLibrary, About,
taskexecution, iteminformation, ratingform, loginform, helpform,
createplaylistform, PopupPlayForm;
{$R *.res}
var
Param: string;
I: integer;
begin
RequireDerivedFormResource:=True;
Application.Scaled:=True;
// Instance
if InstanceRunning('iBroadcast-for-Linux') then
begin
ShowMessage('A instance of iBroadcast is already running!');
Exit;
end;
// Params
for I := 1 to ParamCount do
begin
Param := ParamStr(I);
if Param = '--debug' then
DebugMode := true;
if Param = '--offline' then
IsOffline := true;
if Param = '--help' then
begin
Help := THelp.Create(nil);
with Help do
try
ShowModal;
finally
Free;
end;
Halt;
end;
end;
Application.Initialize;
Application.CreateForm(TMain, Main);
Application.Run;
end.