This commit is contained in:
Ben Anderson 2014-03-29 00:33:51 +13:00
parent 98b4a35fb5
commit b36a5a95f0
2 changed files with 12 additions and 0 deletions

View file

@ -7,6 +7,10 @@
#include <wx/msw/wrapwin.h> #include <wx/msw/wrapwin.h>
#endif #endif
#ifdef __UNIX__
#include <X11/Xlib.h>
#endif
const wxEventType wxEVT_DBG_COMMAND = wxNewEventType(); const wxEventType wxEVT_DBG_COMMAND = wxNewEventType();
IMPLEMENT_APP(Rpcs3App) IMPLEMENT_APP(Rpcs3App)
@ -66,6 +70,12 @@ void Rpcs3App::SendDbgCommand(DbgCommand id, CPUThread* thr)
AddPendingEvent(event); AddPendingEvent(event);
} }
Rpcs3App::Rpcs3App()
{
#ifdef __UNIX__
XInitThreads();
#endif
}
/* /*
CPUThread& GetCPU(const u8 core) CPUThread& GetCPU(const u8 core)
{ {

View file

@ -58,6 +58,8 @@ public:
virtual void OnArguments(); // Handle arguments: Rpcs3App::argc, Rpcs3App::argv virtual void OnArguments(); // Handle arguments: Rpcs3App::argc, Rpcs3App::argv
virtual void Exit(); virtual void Exit();
Rpcs3App();
void SendDbgCommand(DbgCommand id, CPUThread* thr=nullptr); void SendDbgCommand(DbgCommand id, CPUThread* thr=nullptr);
}; };