mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-26 23:55:40 +00:00
Pad: Don't remove card when loading state without card in slot
... unless load-devices-from-state is enabled.
This commit is contained in:
parent
e842abfa8a
commit
b84827b315
|
@ -199,6 +199,8 @@ bool Pad::DoStateMemcard(StateWrapper& sw, u32 i)
|
|||
}
|
||||
|
||||
if (!card_present_in_state && m_memory_cards[i])
|
||||
{
|
||||
if (g_settings.load_devices_from_save_states)
|
||||
{
|
||||
g_host_interface->AddFormattedOSDMessage(
|
||||
20.0f,
|
||||
|
@ -207,6 +209,16 @@ bool Pad::DoStateMemcard(StateWrapper& sw, u32 i)
|
|||
i + 1u);
|
||||
m_memory_cards[i].reset();
|
||||
}
|
||||
else
|
||||
{
|
||||
g_host_interface->AddFormattedOSDMessage(
|
||||
20.0f,
|
||||
g_host_interface->TranslateString("OSDMessage",
|
||||
"Memory card %u present in system but not in save state. Replugging card."),
|
||||
i + 1u);
|
||||
m_memory_cards[i]->Reset();
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue