mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-22 22:05:38 +00:00
Pad: Fix loading controllers from save states
This commit is contained in:
parent
f9d2643d98
commit
81a638cabb
|
@ -67,7 +67,11 @@ bool Pad::DoState(StateWrapper& sw)
|
|||
|
||||
m_controllers[i].reset();
|
||||
if (state_controller_type != ControllerType::None)
|
||||
{
|
||||
m_controllers[i] = Controller::Create(state_controller_type, i);
|
||||
if (!sw.DoMarker("Controller") || !m_controllers[i]->DoState(sw))
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue