PCSX2 Documentation/The PCSX2 Program Flow: Difference between revisions

Line 41: Line 41:
</source>
</source>
These are function pointers for the pxThread, which is the main threading class for the PCSX2 virtual machine. Basically here we are telling pxThread how to handle certain function calls. For example, if <code>pxDoAssert</code> is called, then we will actually call <code>AppDoAssert</code>, which defined [https://github.com/PCSX2/pcsx2/blob/63ba78b6642b2cf617b4d7c9970a47b7038f492d/pcsx2/gui/AppAssert.cpp here]. Similarly, <code>pxDoOutOfMemory</code> will actually call <code>SysOutOfMemory_EmergencyResponse</code>, defined [https://github.com/PCSX2/pcsx2/blob/c5e6013d75057af0aa667788fbb30d2c024f9079/pcsx2/System.cpp here].
These are function pointers for the pxThread, which is the main threading class for the PCSX2 virtual machine. Basically here we are telling pxThread how to handle certain function calls. For example, if <code>pxDoAssert</code> is called, then we will actually call <code>AppDoAssert</code>, which defined [https://github.com/PCSX2/pcsx2/blob/63ba78b6642b2cf617b4d7c9970a47b7038f492d/pcsx2/gui/AppAssert.cpp here]. Similarly, <code>pxDoOutOfMemory</code> will actually call <code>SysOutOfMemory_EmergencyResponse</code>, defined [https://github.com/PCSX2/pcsx2/blob/c5e6013d75057af0aa667788fbb30d2c024f9079/pcsx2/System.cpp here].
<source lang="cpp">
g_Conf = new AppConfig();
</source>
This is really straightforward. We're just creating an instance of AppConfig, which contains all kinds of options for wxWidgets. The declarations are [https://github.com/PCSX2/pcsx2/blob/e525f95f22bab06fa318d0a4e0feb1728b425a2f/pcsx2/gui/AppConfig.h here].


==WxWidgets Frames==
==WxWidgets Frames==
ninja
782

edits