Skip to content

Commit

Permalink
Small formatting change
Browse files Browse the repository at this point in the history
  • Loading branch information
DarthMew committed Jan 18, 2023
1 parent 1455f13 commit 9c701ef
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/core/pad.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,14 @@ bool Pad::DoStateController(StateWrapper& sw, u32 i)

if (controller_type != state_controller_type)
{
// mismatched controller states prevents us from loading the state into the user's preferred controller.
// just doing a reset here is a little dodgy. If there's an active xfer on the state-saved controller
// then who knows what might happen as the rest of the packet streams in. (possibly the SIO xfer will
// timeout and the controller will just correct itself on the next frame's read attempt -- after all on
// physical HW removing a controller is allowed and could happen in the middle of SIO comms)
// mismatched controller states prevents us from loading the state into the user's preferred controller.
// just doing a reset here is a little dodgy. If there's an active xfer on the state-saved controller
// then who knows what might happen as the rest of the packet streams in. (possibly the SIO xfer will
// timeout and the controller will just correct itself on the next frame's read attempt -- after all on
// physical HW removing a controller is allowed and could happen in the middle of SIO comms)

if (m_controllers[i])
m_controllers[i]->Reset();
if (m_controllers[i])
m_controllers[i]->Reset();
}

// we still need to read/write the save state controller state even if the controller does not exist.
Expand Down

0 comments on commit 9c701ef

Please sign in to comment.