Fall back to dfout_C if set before stderr.log

develop
lethosor 2020-04-11 01:32:05 -04:00
parent 9e9e71cad7
commit 148b5495cc
1 changed files with 4 additions and 1 deletions

@ -903,7 +903,10 @@ void Console::add_text(color_value color, const std::string &text)
if (inited)
d->print_text(color, text);
else
fwrite(text.data(), 1, text.size(), stderr);
{
FILE *out = d->dfout_C ? d->dfout_C : stderr;
fwrite(text.data(), 1, text.size(), out);
}
}
int Console::get_columns(void)