mirror of
https://github.com/RPCSX/rpcsx.git
synced 2025-12-31 13:50:46 +01:00
* Removed Compiler ELF references from rpcs3.cpp * Reordered the menu bar lines. * Moved the construction of some panels of MainFrame from rpcs3.cpp to MainFrame.cpp
53 lines
867 B
C++
53 lines
867 B
C++
#include "stdafx.h"
|
|
#include "rpcs3.h"
|
|
#include "Ini.h"
|
|
#include "Emu/System.h"
|
|
#include <wx/msw/wrapwin.h>
|
|
|
|
const wxEventType wxEVT_DBG_COMMAND = wxNewEventType();
|
|
|
|
IMPLEMENT_APP(Rpcs3App)
|
|
Rpcs3App* TheApp;
|
|
|
|
bool Rpcs3App::OnInit()
|
|
{
|
|
TheApp = this;
|
|
SetAppName(_PRGNAME_);
|
|
wxInitAllImageHandlers();
|
|
|
|
Ini.Load();
|
|
|
|
m_MainFrame = new MainFrame();
|
|
SetTopWindow(m_MainFrame);
|
|
Emu.Init();
|
|
|
|
m_MainFrame->Show();
|
|
m_MainFrame->DoSettings(true);
|
|
|
|
return true;
|
|
}
|
|
|
|
void Rpcs3App::Exit()
|
|
{
|
|
Emu.Stop();
|
|
Ini.Save();
|
|
|
|
if(ConLogFrame && !ConLogFrame->IsBeingDeleted()) ConLogFrame->Close();
|
|
|
|
wxApp::Exit();
|
|
}
|
|
|
|
void Rpcs3App::SendDbgCommand(DbgCommand id, CPUThread* thr)
|
|
{
|
|
wxCommandEvent event(wxEVT_DBG_COMMAND, id);
|
|
event.SetClientData(thr);
|
|
AddPendingEvent(event);
|
|
}
|
|
|
|
/*
|
|
CPUThread& GetCPU(const u8 core)
|
|
{
|
|
return Emu.GetCPU().Get(core);
|
|
}*/
|
|
|
|
GameInfo CurGameInfo; |