2012-11-14 23:39:56 +00:00
|
|
|
#pragma once
|
|
|
|
#include "Gui/MainFrame.h"
|
2014-07-11 11:59:13 +00:00
|
|
|
#include "Emu/DbgCommand.h"
|
|
|
|
#include "Utilities/Thread.h"
|
2014-07-11 17:06:59 +00:00
|
|
|
#include <wx/app.h>
|
2012-11-14 23:39:56 +00:00
|
|
|
|
2014-06-02 17:27:24 +00:00
|
|
|
class CPUThread;
|
2013-06-30 08:46:29 +00:00
|
|
|
|
2014-04-13 01:31:59 +00:00
|
|
|
wxDECLARE_EVENT(wxEVT_DBG_COMMAND, wxCommandEvent);
|
2013-06-30 08:46:29 +00:00
|
|
|
|
|
|
|
|
2012-11-14 23:39:56 +00:00
|
|
|
class Rpcs3App : public wxApp
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
MainFrame* m_MainFrame;
|
|
|
|
|
2014-02-27 03:21:08 +00:00
|
|
|
virtual bool OnInit(); // RPCS3's entry point
|
|
|
|
virtual void OnArguments(); // Handle arguments: Rpcs3App::argc, Rpcs3App::argv
|
2012-11-14 23:39:56 +00:00
|
|
|
virtual void Exit();
|
2013-06-30 08:46:29 +00:00
|
|
|
|
2014-03-28 11:33:51 +00:00
|
|
|
Rpcs3App();
|
|
|
|
|
2013-11-03 19:23:16 +00:00
|
|
|
void SendDbgCommand(DbgCommand id, CPUThread* thr=nullptr);
|
2012-11-14 23:39:56 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
DECLARE_APP(Rpcs3App)
|
|
|
|
|
|
|
|
//extern CPUThread& GetCPU(const u8 core);
|
|
|
|
|
|
|
|
extern Rpcs3App* TheApp;
|
2014-02-23 16:52:52 +00:00
|
|
|
static const u64 PS3_CLK = 3200000000;
|