Added DL_FIX for logging

This commit is contained in:
NovaRain
2021-04-02 01:26:25 +08:00
parent e08615abf2
commit ba173c91e9
4 changed files with 154 additions and 145 deletions
+4 -2
View File
@@ -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
View File
File diff suppressed because it is too large Load Diff
+3
View File
@@ -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
View File
@@ -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>