ggpo icon indicating copy to clipboard operation
ggpo copied to clipboard

Decoupling the GGPO API from any static program state

Open Grouflon opened this issue 3 years ago • 1 comments

Hello,

Right now the callback functions don't have any other option than to communicate with your implementation throught some static program variables. This is not great and make having multiple instances of ggpo running in the same program really tedious, which is a shame since it is pretty useful for debugging online applications.

I tried improving that by adding a simple userdata pointer to the callback struct, and passing it as a parameter to all the callback functions.

Grouflon avatar Feb 13 '21 11:02 Grouflon

I wish this one was merged

pakoito avatar Nov 14 '21 11:11 pakoito