mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
Allow disabling output/fine-tuning output
-nooutput disables output completely (both STDOUT and STDERR). -noinfo disables INFO lines. -nowarn disables WARN lines. -noerror disables ERROR lines.
This commit is contained in:
@@ -432,6 +432,10 @@ int main(int argc, char *argv[])
|
||||
playassets = "levels/" + std::string(argv[i]) + ".vvvvvv";
|
||||
})
|
||||
}
|
||||
else if (ARG("-nooutput"))
|
||||
{
|
||||
vlog_toggle_output(0);
|
||||
}
|
||||
else if (ARG("-forcecolor") || ARG("-forcecolour"))
|
||||
{
|
||||
vlog_toggle_color(1);
|
||||
@@ -440,6 +444,18 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
vlog_toggle_color(0);
|
||||
}
|
||||
else if (ARG("-noinfo"))
|
||||
{
|
||||
vlog_toggle_info(0);
|
||||
}
|
||||
else if (ARG("-nowarn"))
|
||||
{
|
||||
vlog_toggle_warn(0);
|
||||
}
|
||||
else if (ARG("-noerror"))
|
||||
{
|
||||
vlog_toggle_error(0);
|
||||
}
|
||||
#undef ARG_INNER
|
||||
#undef ARG
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user