mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-05 14:37:08 +00:00
Success log level fixed
This commit is contained in:
parent
233f2e478a
commit
d62e95d0f8
6 changed files with 49 additions and 52 deletions
|
|
@ -29,20 +29,22 @@ struct wxWriter : Log::LogListener
|
|||
wxTextAttr m_color_white;
|
||||
wxTextAttr m_color_yellow;
|
||||
wxTextAttr m_color_red;
|
||||
wxTextAttr m_color_green;
|
||||
MTRingbuffer<char, BUFFER_MAX_SIZE> messages;
|
||||
std::atomic<bool> newLog;
|
||||
bool inited;
|
||||
|
||||
wxWriter(wxTextCtrl* p_log, wxTextCtrl* p_tty) :
|
||||
m_color_white(wxColour(255, 255, 255)) ,
|
||||
m_color_yellow(wxColour(255, 255, 0)) ,
|
||||
m_color_red(wxColour(255, 0, 0)) ,
|
||||
m_log(p_log),
|
||||
m_tty(p_tty),
|
||||
newLog(false),
|
||||
inited(false)
|
||||
wxWriter(wxTextCtrl* p_log, wxTextCtrl* p_tty)
|
||||
: m_color_white(wxColour(255, 255, 255))
|
||||
, m_color_yellow(wxColour(255, 255, 0))
|
||||
, m_color_red(wxColour(255, 0, 0))
|
||||
, m_color_green(wxColour(0, 255, 0))
|
||||
, m_log(p_log)
|
||||
, m_tty(p_tty)
|
||||
, newLog(false)
|
||||
, inited(false)
|
||||
{
|
||||
m_log->Bind(EVT_LOG_COMMAND, [this](wxCommandEvent &evt){this->write(evt);});
|
||||
m_log->Bind(EVT_LOG_COMMAND, [this](wxCommandEvent &evt){ this->write(evt); });
|
||||
}
|
||||
|
||||
wxWriter(wxWriter &other) = delete;
|
||||
|
|
@ -83,6 +85,9 @@ struct wxWriter : Log::LogListener
|
|||
case Log::Error:
|
||||
llogcon->SetDefaultStyle(m_color_red);
|
||||
break;
|
||||
case Log::Success:
|
||||
llogcon->SetDefaultStyle(m_color_green);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue