mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-04 14:08:37 +00:00
This commit is contained in:
parent
de070bf485
commit
a90b5cf37a
1998 changed files with 1034301 additions and 0 deletions
44
rpcs3/rpcs3.cpp
Normal file
44
rpcs3/rpcs3.cpp
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
#include "stdafx.h"
|
||||
#include "rpcs3.h"
|
||||
#include "Ini.h"
|
||||
#include "Emu/System.h"
|
||||
#include <wx/msw/wrapwin.h>
|
||||
|
||||
IMPLEMENT_APP(Rpcs3App)
|
||||
Rpcs3App* TheApp;
|
||||
|
||||
bool Rpcs3App::OnInit()
|
||||
{
|
||||
TheApp = this;
|
||||
SetAppName(_PRGNAME_);
|
||||
wxInitAllImageHandlers();
|
||||
|
||||
Ini.Load();
|
||||
|
||||
ConLogFrame = new LogFrame();
|
||||
ConLogFrame->Show();
|
||||
|
||||
m_MainFrame = new MainFrame();
|
||||
Emu.Init();
|
||||
m_MainFrame->Show();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
void Rpcs3App::Exit()
|
||||
{
|
||||
Emu.Stop();
|
||||
Ini.Save();
|
||||
|
||||
if(ConLogFrame && !ConLogFrame->IsBeingDeleted()) ConLogFrame->Close();
|
||||
|
||||
wxApp::Exit();
|
||||
}
|
||||
|
||||
/*
|
||||
CPUThread& GetCPU(const u8 core)
|
||||
{
|
||||
return Emu.GetCPU().Get(core);
|
||||
}*/
|
||||
|
||||
GameInfo CurGameInfo;
|
||||
Loading…
Add table
Add a link
Reference in a new issue