mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-22 13:55:38 +00:00
MemoryCard: Don't display message for empty card
This commit is contained in:
parent
2840262f28
commit
2d40ddaf33
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue