diff options
author | tobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2008-04-24 12:47:09 +0000 |
---|---|---|
committer | tobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2008-04-24 12:47:09 +0000 |
commit | 0d86a79ad303441af3080f1c744da0c556927425 (patch) | |
tree | 83943097249ee2bf37ac45a64b7db7f1006eb5ab /Game/Code/Classes/UMain.pas | |
parent | c0e68207b30e23265520b4bc1335d0bf9aea3b11 (diff) | |
download | usdx-0d86a79ad303441af3080f1c744da0c556927425.tar.gz usdx-0d86a79ad303441af3080f1c744da0c556927425.tar.xz usdx-0d86a79ad303441af3080f1c744da0c556927425.zip |
- reverted some stuff that was erroneously commited by one of the last commits.
- moved DEBUG define from config-*.inc back to switches.inc
- APPTYPE is needed by FPC (for Windows) too. Fixed some crashes with Writeln in FPC (Win) if no console is available.
- Moved thread-safe ULog.SafeWriteln() to UCommon.ConsoleWriteln(), this is used by DebugWriteln() now, so this is thread-safe too
- Added log-levels (sorted by severity): DEBUG, INFO, STATUS, WARN, ERROR, CRITICAL. Default log-level is LOG_LEVEL_ERROR, so warnings and less important logs are not printed by default. You can change this by LOG_LEVEL_DEFAULT or Log.SetLogLevel(Level). Please use Log.LogError/Warn/Status/Info/Debug/... instead of DebugWriteln() to avoid spamming the console. See ULog.pas for further info.
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1036 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to '')
-rw-r--r-- | Game/Code/Classes/UMain.pas | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Game/Code/Classes/UMain.pas b/Game/Code/Classes/UMain.pas index 2e49ac8d..5dc03fe8 100644 --- a/Game/Code/Classes/UMain.pas +++ b/Game/Code/Classes/UMain.pas @@ -165,7 +165,7 @@ begin // Log + Benchmark Log := TLog.Create; Log.Title := WndTitle; - Log.Enabled := not Params.NoLog; + Log.FileOutputEnabled := not Params.NoLog; Log.BenchmarkStart(0); // Language |