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:40, 19 March 2015
, 19 March 2015→WxWidgets Frames
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 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 | 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> |