PCSX2 Documentation/The PCSX2 Program Flow: Difference between revisions
Jump to navigation
Jump to search
PCSX2 Documentation/The PCSX2 Program Flow (view source)
Revision as of 15:31, 19 March 2015
, 19 March 2015no edit summary
No edit summary |
No edit summary |
||
Line 15: | Line 15: | ||
if( m_UseGUI ) OpenMainFrame(); | if( m_UseGUI ) OpenMainFrame(); | ||
</source> | </source> | ||
== | ==WxWidgets Frames== | ||
In addition to Application classes, there are also Frame classes. So when we call the OpenMainFrame function, what happens? Take a look at this code in [https://github.com/PCSX2/pcsx2/blob/master/pcsx2/gui/AppInit.cpp AppInit.cpp]. | |||
<source lang="cpp"> | |||
void Pcsx2App::OpenMainFrame() | |||
{ | |||
if( AppRpc_TryInvokeAsync( &Pcsx2App::OpenMainFrame ) ) return; | |||
if( GetMainFramePtr() != NULL ) return; | |||
MainEmuFrame* mainFrame = new MainEmuFrame( NULL, pxGetAppName() ); | |||
... | |||
} | |||
</source> | |||
Here we're creating an instance of the [https://github.com/PCSX2/pcsx2/blob/e726f82344fa4e8c2e9d7be99364dbac35429499/pcsx2/gui/MainFrame.h MainEmuFrame class]. That class contains |