mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-08-04 09:44:10 +00:00
Fixes dlogger PR
When applied this commit fixes the unix build of the previous dLogger PR. This commit also fixes backwards compatability with config files.
This commit is contained in:
@@ -39,10 +39,9 @@ void dLogger::vLog(const char* format, va_list args) {
|
||||
mFile << "[" << timeStr << "] " << message;
|
||||
#else
|
||||
time_t t = time(NULL);
|
||||
struct tm time;
|
||||
localtime_s(&time, &t);
|
||||
char timeStr[70];
|
||||
strftime(timeStr, sizeof(timeStr), "%d-%m-%y %H:%M:%S", &time);
|
||||
struct tm * time = localtime(&t);
|
||||
char timeStr[70];
|
||||
strftime(timeStr, sizeof(timeStr), "%d-%m-%y %H:%M:%S", time);
|
||||
char message[2048];
|
||||
vsprintf(message, format, args);
|
||||
|
||||
|
Reference in New Issue
Block a user