Skip to content

Commit 2eb0432

Browse files
committed
more things I missed
1 parent 655a0d0 commit 2eb0432

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

Source/script/simba.script_runner.pas

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ TSimbaScriptRunner = class(TThread)
2020
FScript: TSimbaScript;
2121
FCompileOnly: Boolean;
2222

23-
procedure DoDebugLn(Flags: EDebugLnFlags; Text: String);
23+
procedure DoDebugLn(Flags: EDebugLnFlags; bgColor: TColor; Text: String);
2424
procedure DoCompilerHint(Sender: TLapeCompilerBase; Hint: lpString);
2525

2626
procedure DoApplicationTerminate(Sender: TObject);
@@ -41,14 +41,21 @@ implementation
4141
simba.env, simba.fs, simba.datetime, simba.script_communication, simba.vartype_string,
4242
simba.baseclass;
4343

44-
procedure TSimbaScriptRunner.DoDebugLn(Flags: EDebugLnFlags; Text: String);
44+
procedure TSimbaScriptRunner.DoDebugLn(Flags: EDebugLnFlags; bgColor: TColor; Text: String);
4545
begin
4646
if (SimbaProcessType = ESimbaProcessType.SCRIPT_WITH_COMMUNICATION) then // Only add flags if we have communication with simba to use them
4747
DebugLn(Flags, Text)
4848
else
4949
begin
50-
if Application.HasOption('silent') and (Flags * [EDebugLn.BACKGROUND_COLOR] <> []) then
50+
if Application.HasOption('silent') then
51+
begin
52+
if (Flags * [EDebugLn.BACKGROUND_COLOR] <> []) then
53+
begin
54+
if bgColor = GetLineColor(EDebugLnColor.RED) then
55+
DebugLn(Text);
56+
end;
5157
Exit;
58+
end;
5259

5360
DebugLn(Text);
5461
end;

0 commit comments

Comments
 (0)