fix log windows bug; remove unneeded third party files

This commit is contained in:
2023-09-02 11:53:52 +00:00
parent 1b1d080528
commit 3e0dc30645
74 changed files with 11262 additions and 50026 deletions

View File

@@ -10,7 +10,7 @@
#include "script.h"
int logLevel = 1;
int logLevel = 0;
/* Four levels of log:
0 info
@@ -46,6 +46,7 @@ void mYughLog(int category, int priority, int line, const char *file, const char
vsnprintf(msgbuffer, ERROR_BUFFER, message, args);
va_end(args);
char buffer[ERROR_BUFFER] = { '\0' };
snprintf(buffer, ERROR_BUFFER, "%s:%d: %s, %s: %s\n", file, line, logstr[priority], catstr[category], msgbuffer);
@@ -85,3 +86,7 @@ void log_cat(FILE *f) {
YughInfo(out);
}
}
void sg_logging(const char *tag, uint32_t lvl, uint32_t id, const char *msg, uint32_t line, const char *file, void *data) {
mYughLog(lvl, 1, line, file, "tag: %d, msg: %s", tag, msg);
}