Pad: Fix loading controllers from save states

This commit is contained in:
Albert Liu 2020-11-13 07:10:30 -08:00
parent f9d2643d98
commit 81a638cabb
1 changed files with 4 additions and 0 deletions

View File

@ -67,7 +67,11 @@ bool Pad::DoState(StateWrapper& sw)
m_controllers[i].reset(); m_controllers[i].reset();
if (state_controller_type != ControllerType::None) if (state_controller_type != ControllerType::None)
{
m_controllers[i] = Controller::Create(state_controller_type, i); m_controllers[i] = Controller::Create(state_controller_type, i);
if (!sw.DoMarker("Controller") || !m_controllers[i]->DoState(sw))
return false;
}
} }
else else
{ {