PCSX2 Documentation/The PCSX2 Program Flow: Difference between revisions
PCSX2 Documentation/The PCSX2 Program Flow (view source)
Revision as of 15:38, 19 March 2015
, 19 March 2015→WxWidgets Frames
No edit summary |
|||
Line 18: | Line 18: | ||
==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 in [https://github.com/PCSX2/pcsx2/blob/master/pcsx2/gui/AppInit.cpp AppInit.cpp]. | ||
void Pcsx2App::OpenMainFrame() | void Pcsx2App::OpenMainFrame() | ||
{ | { | ||
Line 31: | Line 31: | ||
</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 | 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: | ||
In [https://github.com/PCSX2/pcsx2/blob/f3bb434b27737849546290bbfc8d09c61103081c/pcsx2/gui/MainMenuClicks.cpp MainMenuClicks.cpp] | |||
<source lang="cpp"> | |||
void MainEmuFrame::_DoBootCdvd() | |||
</source> |