mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-01-16 07:10:40 +00:00
f15c679fea
Since @devmapal hasn't made a PR for this and this would be probably
useful for Coveralls and unit tests I'm making a PR for it myself.
More info:
c72f5d40f5
37 lines
794 B
C++
37 lines
794 B
C++
#pragma once
|
|
#include "Gui/MainFrame.h"
|
|
#include "Emu/DbgCommand.h"
|
|
#include "Utilities/Thread.h"
|
|
#include <wx/app.h>
|
|
#include <wx/cmdline.h>
|
|
|
|
class CPUThread;
|
|
|
|
wxDECLARE_EVENT(wxEVT_DBG_COMMAND, wxCommandEvent);
|
|
|
|
|
|
class Rpcs3App : public wxApp
|
|
{
|
|
private:
|
|
wxCmdLineParser parser;
|
|
// Used to restore the configuration state after a test run
|
|
bool HLEExitOnStop;
|
|
public:
|
|
MainFrame* m_MainFrame;
|
|
|
|
virtual bool OnInit(); // RPCS3's entry point
|
|
virtual void OnArguments(const wxCmdLineParser& parser); // Handle arguments: Rpcs3App::argc, Rpcs3App::argv
|
|
virtual void Exit();
|
|
|
|
Rpcs3App();
|
|
|
|
void SendDbgCommand(DbgCommand id, CPUThread* thr=nullptr);
|
|
};
|
|
|
|
DECLARE_APP(Rpcs3App)
|
|
|
|
//extern CPUThread& GetCPU(const u8 core);
|
|
|
|
extern Rpcs3App* TheApp;
|
|
static const u64 PS3_CLK = 3200000000;
|