mirror of
https://github.com/sfall-team/sfall.git
synced 2026-07-27 16:52:34 -07:00
Added DL_FIX for logging
This commit is contained in:
+4
-2
@@ -819,10 +819,12 @@ Test_ForceFloats=0
|
||||
|
||||
;These options control what output is saved in the debug log (sfall-log.txt)
|
||||
;Prints messages duing sfall initialization
|
||||
Init=0
|
||||
Init=1
|
||||
;Prints messages relating to hook scripts
|
||||
Hook=0
|
||||
;Prints messages relating to scripting
|
||||
Script=0
|
||||
;Prints messages relating to the critical table
|
||||
Criticals=0
|
||||
Criticals=1
|
||||
;Prints messages relating to engine fixes
|
||||
Fixes=1
|
||||
|
||||
+142
-139
File diff suppressed because it is too large
Load Diff
@@ -83,6 +83,9 @@ void LoggingInit() {
|
||||
if (GetIntDefaultConfig("Debugging", "Criticals", 0)) {
|
||||
DebugTypes |= DL_CRITICALS;
|
||||
}
|
||||
if (GetIntDefaultConfig("Debugging", "Fixes", 0)) {
|
||||
DebugTypes |= DL_FIX;
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
+5
-4
@@ -17,10 +17,11 @@
|
||||
*/
|
||||
|
||||
#define DL_MAIN (0)
|
||||
#define DL_INIT (1<<1)
|
||||
#define DL_HOOK (1<<2)
|
||||
#define DL_SCRIPT (1<<3)
|
||||
#define DL_CRITICALS (1<<4)
|
||||
#define DL_INIT (0x1)
|
||||
#define DL_HOOK (0x2)
|
||||
#define DL_SCRIPT (0x4)
|
||||
#define DL_CRITICALS (0x8)
|
||||
#define DL_FIX (0x10)
|
||||
|
||||
#ifndef NO_SFALL_DEBUG
|
||||
#include <stdio.h>
|
||||
|
||||
Reference in New Issue
Block a user