PCSX2 Documentation/The PCSX2 Program Flow: Difference between revisions

no edit summary
No edit summary
Line 40: Line 40:
pxDoOutOfMemory = SysOutOfMemory_EmergencyResponse;
pxDoOutOfMemory = SysOutOfMemory_EmergencyResponse;
</source>
</source>
These are function pointers for the pxThread, which is the main threading system for PCSX2. Basically here we are saying that when something calls pxDoAssert, we will actually execute AppDoAssert, which is defined [https://github.com/PCSX2/pcsx2/blob/63ba78b6642b2cf617b4d7c9970a47b7038f492d/pcsx2/gui/AppAssert.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 pxDoAssert is called, then we will actually call AppDoAssert, which defined here: [https://github.com/PCSX2/pcsx2/blob/63ba78b6642b2cf617b4d7c9970a47b7038f492d/pcsx2/gui/AppAssert.cpp here]. Similarly, pxDoOutOfMemory will actually call SysOutOfMemory_EmergencyResponse, defined here: [https://github.com/PCSX2/pcsx2/blob/c5e6013d75057af0aa667788fbb30d2c024f9079/pcsx2/System.cpp].


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

edits