PCSX2 Documentation/The PCSX2 Program Flow: Difference between revisions

Line 17: Line 17:


==WxWidgets Frames==
==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].
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:
 
<source lang="cpp">
// In /pcsx2/gui/AppInit.cpp


void Pcsx2App::OpenMainFrame()
void Pcsx2App::OpenMainFrame()
Line 31: Line 34:
</source>
</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 members for all the cool GUI elements, buttons, menus, stuff like that. So let's take a step further. Suppose we want to boot up a game. When we select Boot DVD in the pcsx2 menus, we are calling upon this function here:
Here we're creating an instance of the MainEmuFrame class. That class contains members for all the cool GUI elements, buttons, menus, stuff like that. So let's take a step further. Suppose we want to boot up a game. When we select Boot DVD in the pcsx2 menus, we are calling upon this function here:


<source lang="cpp">
<source lang="cpp">
// In /pcsx2/gui/MainMenuClicks.cpp
// In /pcsx2/gui/MainMenuClicks.cpp
void MainEmuFrame::_DoBootCdvd()
void MainEmuFrame::_DoBootCdvd()
</source>
</source>
ninja
782

edits