aboutsummaryrefslogtreecommitdiffstats
path: root/Game/Code/Classes/ULog.pas
diff options
context:
space:
mode:
authorwhiteshark0 <whiteshark0@b956fd51-792f-4845-bead-9b4dfca2ff2c>2007-10-03 12:43:01 +0000
committerwhiteshark0 <whiteshark0@b956fd51-792f-4845-bead-9b4dfca2ff2c>2007-10-03 12:43:01 +0000
commitfdb75fa47dd72522b705e94be5a201c4e1a731cb (patch)
treeef1c31e621aea90f749283e8e82c7a89075887e2 /Game/Code/Classes/ULog.pas
parent2e7eca65cf05d8090ef58381d576d5218edd9654 (diff)
downloadusdx-fdb75fa47dd72522b705e94be5a201c4e1a731cb.tar.gz
usdx-fdb75fa47dd72522b705e94be5a201c4e1a731cb.tar.xz
usdx-fdb75fa47dd72522b705e94be5a201c4e1a731cb.zip
New plugin SDK added
Some more debug information for windows builds (Does this work in lazarus?) git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@466 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'Game/Code/Classes/ULog.pas')
-rw-r--r--Game/Code/Classes/ULog.pas16
1 files changed, 12 insertions, 4 deletions
diff --git a/Game/Code/Classes/ULog.pas b/Game/Code/Classes/ULog.pas
index 7c93c6e9..7e464b57 100644
--- a/Game/Code/Classes/ULog.pas
+++ b/Game/Code/Classes/ULog.pas
@@ -188,6 +188,11 @@ begin
FileErrorO := false;
end;
end;
+ {$DEFINE DEBUG} //How can i check if this is set in *.dpr file o0
+ //If Debug => Write to Console Output
+ {$IFDEF DEBUG}
+ WriteLn('Error: ' + Text);
+ {$ENDIF}
end;
procedure TLog.LogVoice(SoundNr: integer);
@@ -219,10 +224,13 @@ end;
procedure TLog.LogStatus(Log1, Log2: string);
begin
//Just for Debugging
- //Comment for Release
- //LogAnalyze (Log2 + ': ' + Log1);
-
- LogError(Log2 + ': ' + Log1);
+ //Comment for Release
+ //LogError(Log2 + ': ' + Log1);
+
+ //If Debug => Write to Console Output
+ {$IFDEF DEBUG}
+ WriteLn(Log2 + ': ' + Log1);
+ {$ENDIF}
end;
procedure TLog.LogError(Log1, Log2: string);