mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +00:00
backing up some stuff
This commit is contained in:
parent
adb7f248da
commit
bd100c5483
6 changed files with 172 additions and 43 deletions
|
@ -32,6 +32,8 @@ void debugstreams_init(bool disable_stderr, const char *filename)
|
|||
{
|
||||
if(disable_stderr)
|
||||
g_debugstreams[0] = NULL;
|
||||
else
|
||||
g_debugstreams[0] = stderr;
|
||||
|
||||
if(filename)
|
||||
g_debugstreams[1] = fopen(filename, "a");
|
||||
|
@ -42,6 +44,9 @@ void debugstreams_init(bool disable_stderr, const char *filename)
|
|||
fprintf(g_debugstreams[1], " Separator \n");
|
||||
fprintf(g_debugstreams[1], "-------------\n\n");
|
||||
}
|
||||
|
||||
DEBUGPRINT("Debug streams initialized, disable_stderr=%d\n",
|
||||
disable_stderr);
|
||||
}
|
||||
|
||||
void debugstreams_deinit()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue