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

SNIClient: set SNESState to SNES_DISCONNECTED when disconnected #3188

Merged
merged 1 commit into from
Apr 21, 2024

Conversation

Silvris
Copy link
Collaborator

@Silvris Silvris commented Apr 21, 2024

What is this fixing or adding?

When we disconnect from the SNES (intentional or otherwise), we don't actually change our state to reflect this. This means SNIClient cannot reconnect, as snes_connect will see our status as SNES_CONNECTED and think we're waiting on the SNES to load a game.

How was this tested?

Connected to Snes9x-rr using SNI's lua, and then paused the emulator, forcing SNIClient to disconnect. Then, unpaused the emulator and confirmed that SNIClient was capable of reconnecting without any further help.

@github-actions github-actions bot added the waiting-on: peer-review Issue/PR has not been reviewed by enough people yet. label Apr 21, 2024
@Zunawe Zunawe added the is: bug/fix Issues that are reporting bugs or pull requests that are fixing bugs. label Apr 21, 2024
@Berserker66 Berserker66 merged commit 3e27b93 into ArchipelagoMW:main Apr 21, 2024
16 checks passed
qwint pushed a commit to qwint/Archipelago that referenced this pull request Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
is: bug/fix Issues that are reporting bugs or pull requests that are fixing bugs. waiting-on: peer-review Issue/PR has not been reviewed by enough people yet.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants