home *** CD-ROM | disk | FTP | other *** search
- (*************************************************************************)
- (* jBooster *)
- (* Delphi-5 or Delphi-6 compatible *)
- (* (c) pulsar@mail.primorye.ru *)
- (*************************************************************************)
- Program jBooster;
- {$D '(c) pulsar@mail.primorye.ru'}
- {$J+,H+,A+,B-,I-}
-
- uses
- Forms,
- Dialogs,
- Support in 'Support.pas',
- MainForm in 'MainForm.pas' {FormMain},
- ViewerForm in 'ViewerForm.pas' {FormViewer};
-
- {$R *.RES}
-
- Var
- { log-file }
- LogFile : Text;
-
- procedure PutLog (const Mssg: string; Pfx: TMsgDlgType);
- begin
- Writeln (LogFile, Mssg);
- Flush (LogFile);
- end; { PutLog }
-
- Begin
- Application.Initialize;
- { autorun }
- if RunAuto then begin
- if OpenText (LogFile, ExePath + LogName, true) then begin
- Report := PutLog;
- { load }
- if LoadParameters (nil, nil) then begin
- if Images.Scan then begin
- { test }
- if isValid then begin
- if Images.Run and AutoSave then SaveParameters (nil, nil);
- end { if }
- else Error (IniFile, 'There is nothing to run');
- end; { if }
- end; { if }
- Close (LogFile);
- ExitCode := Errors;
- end { if }
- else ExitCode := MaxInt;
- end { if }
- { application mode }
- else begin
- Application.CreateForm(TFormMain, FormMain);
- Application.CreateForm(TFormViewer, FormViewer);
- Application.Run;
- end; { else }
- End.
-