PCSX2 Documentation/The PCSX2 Program Flow: Difference between revisions
PCSX2 Documentation/The PCSX2 Program Flow (view source)
Revision as of 17:24, 25 February 2015
, 25 February 2015no edit summary
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
==AppMain.cpp - this is where the fun begins!== | ===AppMain.cpp - this is where the fun begins!=== | ||
There is a lot that happens under the hood with wxWidgets. We don't need to worry about that. All we need to worry about is this this line of code in [https://github.com/PCSX2/pcsx2/blob/master/pcsx2/gui/AppMain.cpp AppMain.cpp]. | There is a lot that happens under the hood with wxWidgets. We don't need to worry about that. All we need to worry about is this this line of code in [https://github.com/PCSX2/pcsx2/blob/master/pcsx2/gui/AppMain.cpp AppMain.cpp]. | ||
<source lang="cpp">IMPLEMENT_APP(Pcsx2App)</source> | <source lang="cpp">IMPLEMENT_APP(Pcsx2App)</source> | ||
This macro tells the wxWidgets framework that we want to fire up Pcsx2App. Easy, right? | This macro tells the wxWidgets framework that we want to fire up Pcsx2App. Easy, right? | ||
==Pcsx2App - the part we care about== | ===Pcsx2App - the part we care about=== | ||
So where does Pcsx2App live? Well, the declarations are in the header file [https://github.com/PCSX2/pcsx2/blob/master/pcsx2/gui/App.h App.h] and the definitions are in a few different files. But let's first take a look at the header file. | So where does Pcsx2App live? Well, the declarations are in the header file [https://github.com/PCSX2/pcsx2/blob/master/pcsx2/gui/App.h App.h] and the definitions are in a few different files. But let's first take a look at the header file. | ||
<source lang=cpp> | <source lang=cpp> |