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

Fix netplay mode #130

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

trufanov-nok
Copy link
Contributor

It seems current Fuse doesn't work in Netplay mode bcs it updates the snapshot buffer in retro_serialize_size() and retro_serialize() just returrns its copy. Looks like authors found no way to estimate a snapshot size without making a real snapshot. In regular snapshot saving (F2 hotkey) retroarch calls retro_serialize_size() before retro_serialize() and authors decided to not making a snapshot in retro_serialize() again. That works, but not in a netplay mode. In Netplay mode retroarch calls retro_serialize_size() once at very beginning and then calls retro_serialize()every time it needs to sync host and players. As the snapshot isn't really updated this results in resetting the game with a snapshot of a spectrum boot menu for all players except the host.

This patch should fix this problem.

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.

1 participant