mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
Add command-line options to force-enable/disable color
`-forcecolor` will force color to be on. `-nocolor` will force color to be off. And just because I'm a nice person, I've also added British versions of those flags. As a treat.
This commit is contained in:
@@ -432,6 +432,14 @@ int main(int argc, char *argv[])
|
||||
playassets = "levels/" + std::string(argv[i]) + ".vvvvvv";
|
||||
})
|
||||
}
|
||||
else if (ARG("-forcecolor") || ARG("-forcecolour"))
|
||||
{
|
||||
vlog_toggle_color(1);
|
||||
}
|
||||
else if (ARG("-nocolor") || ARG("-nocolour"))
|
||||
{
|
||||
vlog_toggle_color(0);
|
||||
}
|
||||
#undef ARG_INNER
|
||||
#undef ARG
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user