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.
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.