summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8b13646)
raw | patch | inline | side by side (parent: 8b13646)
author | Ketmar Dark <ketmar@ketmar.no-ip.org> | |
Mon, 25 Apr 2016 19:25:59 +0000 (22:25 +0300) | ||
committer | Ketmar Dark <ketmar@ketmar.no-ip.org> | |
Mon, 25 Apr 2016 19:25:59 +0000 (22:25 +0300) |
src/game/g_main.pas | patch | blob | history | |
src/shared/conbuf.pas | patch | blob | history |
diff --git a/src/game/g_main.pas b/src/game/g_main.pas
index c78c2bf3445b05e611879014aec397b9b80a9336..e1e21d8d3de2ea5563dd89df7c88776272646775 100644 (file)
--- a/src/game/g_main.pas
+++ b/src/game/g_main.pas
e_WriteLog('Read config file', MSG_NOTIFY);
g_Options_Read(GameDir + '/' + CONFIG_FILENAME);
- e_WriteToStdOut := {$IFDEF HEADLESS}True;{$ELSE}False;{$ENDIF}
+ e_WriteToStdOut := False; //{$IFDEF HEADLESS}True;{$ELSE}False;{$ENDIF}
//GetSystemDefaultLCID()
diff --git a/src/shared/conbuf.pas b/src/shared/conbuf.pas
index 581a8818b5f1672a6a5047e9ea1d0e2d87bf2c02..57ed64431cab091c167ee4052c82f239446909ff 100644 (file)
--- a/src/shared/conbuf.pas
+++ b/src/shared/conbuf.pas
// ////////////////////////////////////////////////////////////////////////// //
+{$IFDEF HEADLESS}
+var
+ needCon: Boolean = true;
+{$ENDIF}
procedure cbufPutChars (buf: PChar; count: Integer);
var
np: LongWord;
begin
if count > 0 then
begin
+{$IFDEF HEADLESS}
+ //write(stderr, 'CON: ');
+ for np := 0 to count-1 do
+ begin
+ if needCon then begin write(stdout, 'CON: '); needCon := false; end;
+ write(stdout, buf[np]);
+ needCon := (buf[np] = #10);
+ end;
+{$ENDIF}
Inc(changeCount);
if changeCount = 0 then changeCount := 1;
while count > 0 do