mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2025-01-19 14:55:38 +00:00
System: Don't insert blank memory card if path unspecified
This commit is contained in:
parent
3f042cd477
commit
a9109c7552
|
@ -662,6 +662,9 @@ void System::UpdateMemoryCards()
|
|||
for (u32 i = 0; i < NUM_CONTROLLER_AND_CARD_PORTS; i++)
|
||||
{
|
||||
m_pad->SetMemoryCard(i, nullptr);
|
||||
if (settings.memory_card_paths[i].empty())
|
||||
continue;
|
||||
|
||||
std::unique_ptr<MemoryCard> card = MemoryCard::Open(this, settings.memory_card_paths[i]);
|
||||
if (card)
|
||||
m_pad->SetMemoryCard(i, std::move(card));
|
||||
|
|
Loading…
Reference in a new issue