mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-30 09:54:10 +03:00
Add colors to logging
This includes the bold as well. INFO is just default, WARN is yellow, ERROR is red. We try to automatically detect if the output is a TTY (and thus supports colors), and don't emit colors if so. Windows 10 supports ANSI color codes starting with a specific build, but we don't care to emit whatever garbage Microsoft invented for builds older than that.
This commit is contained in:
@@ -361,6 +361,8 @@ int main(int argc, char *argv[])
|
||||
char* baseDir = NULL;
|
||||
char* assetsPath = NULL;
|
||||
|
||||
vlog_init();
|
||||
|
||||
for (int i = 1; i < argc; ++i)
|
||||
{
|
||||
#define ARG(name) (SDL_strcmp(argv[i], name) == 0)
|
||||
|
||||
Reference in New Issue
Block a user