PCSX2 Documentation/The PCSX2 Program Flow: Difference between revisions

Jump to navigation Jump to search
Line 7: Line 7:
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>
 
class Pcsx2App : public wxAppWithHelpers{
...
}
</source>
</source>
You can see here that the Pcsx2App class is an extension of the wxAppWithHelpers class. Pcsx2App contains methods that wxWidgets is going to call upon at various times. So what gets called when we fire up Pcsx2App? Why that would be the OnInit() method which is defined in [https://github.com/PCSX2/pcsx2/blob/master/pcsx2/gui/AppInit.cpp AppInit.cpp].
ninja
782

edits

Navigation menu