mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-19 21:39:57 +00:00
m
This commit is contained in:
parent
34db76fc45
commit
5382c0a30b
1 changed files with 4 additions and 2 deletions
|
|
@ -38,12 +38,14 @@ struct GLDebugLoggerPrivate{
|
|||
~GLDebugLoggerPrivate(){}
|
||||
|
||||
void writeTimestamp(){
|
||||
//https://stackoverflow.com/questions/9628637/how-can-i-get-rid-of-n-from-string-in-c
|
||||
time(×tamp);
|
||||
*stream << "[GLDEBUG] [" << ctime(×tamp) << "]";
|
||||
char foo[strlen(ctime(×tamp)) - 1] = ctime(×tamp);
|
||||
*stream << "[GLDEBUG] [" << foo << "]";
|
||||
}
|
||||
|
||||
void writeLine(const char *line){
|
||||
*stream << line << "\n";
|
||||
*stream << line << "/n";
|
||||
stream->flush();
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue