Fix regression, option --no-color not fully disabled colored output.

This commit is contained in:
XMRig 2017-06-19 10:58:28 +03:00
parent ed0972da85
commit 9bfa49b7d0
5 changed files with 23 additions and 24 deletions

View file

@ -51,16 +51,17 @@ public:
# endif
static inline Console* i() { return m_self; }
static void init();
static void init(bool colors, bool background);
void message(Level level, const char* fmt, ...);
void text(const char* fmt, ...);
private:
Console();
Console(bool colors, bool background);
static Console *m_self;
bool m_background;
bool m_colors;
static Console *m_self;
uv_mutex_t m_mutex;
};