rpcsx/rpcs3/Gui/ConLog.h
Alexandro Sánchez Bach 950fcfe4ef Reverted ConLog changes of commit 5ea58d94
This was causing a "Bad flip!" error on Arkedo Series 02 Swap!. I guess
we will have to search for a better solution. I just reverted the
ConLog.cpp / ConLog.h files.

Related commit:
5ea58d9451
2014-03-28 05:32:24 +01:00

48 lines
820 B
C++

#pragma once
#include <wx/listctrl.h>
#include "Ini.h"
#include "Gui/FrameBase.h"
class LogWriter
{
wxFile m_logfile;
wxColour m_txtcolour;
std::string m_prefix;
std::string m_value;
virtual void WriteToLog(std::string prefix, std::string value, u8 lvl);
public:
LogWriter();
virtual void Write(const wxString fmt, ...);
virtual void Error(const wxString fmt, ...);
virtual void Warning(const wxString fmt, ...);
virtual void Success(const wxString fmt, ...);
virtual void SkipLn();
};
class LogFrame
: public wxPanel
, public ThreadBase
{
wxListView& m_log;
public:
LogFrame(wxWindow* parent);
~LogFrame();
bool Close(bool force = false);
private:
virtual void Task();
void OnQuit(wxCloseEvent& event);
DECLARE_EVENT_TABLE();
};
extern LogWriter ConLog;
extern LogFrame* ConLogFrame;