Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decoupling the GGPO API from any static program state #62

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Grouflon
Copy link

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.

@pakoito
Copy link

pakoito commented Nov 14, 2021

I wish this one was merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants