MemoryCard: Don't display message for empty card

This commit is contained in:
Stenzek 2024-09-03 21:49:51 +10:00
parent 2840262f28
commit 2d40ddaf33
No known key found for this signature in database

View file

@ -301,10 +301,6 @@ std::unique_ptr<MemoryCard> MemoryCard::Open(std::string_view filename)
Error error; Error error;
if (!FileSystem::FileExists(mc->m_filename.c_str())) [[unlikely]] if (!FileSystem::FileExists(mc->m_filename.c_str())) [[unlikely]]
{ {
Host::AddIconOSDMessage(fmt::format("memory_card_{}", filename), ICON_FA_SD_CARD,
fmt::format(TRANSLATE_FS("MemoryCard", "{} does not exist, using empty memory card."),
Path::GetFileName(filename)),
Host::OSD_INFO_DURATION);
mc->Format(); mc->Format();
mc->m_changed = false; mc->m_changed = false;
} }