Sio: Replace reinsert spam with a single message

This commit is contained in:
Stenzek 2023-06-28 20:15:51 +10:00 committed by Connor McLaughlin
parent 4bfbc355a2
commit 3fbe704e21
1 changed files with 7 additions and 6 deletions

View File

@ -907,14 +907,15 @@ void AutoEject::CountDownTicks()
if (mcds[port][slot].autoEjectTicks > 0)
{
if (--mcds[port][slot].autoEjectTicks == 0)
reinserted |= EmuConfig.Mcd[sioConvertPortAndSlotToPad(port, slot)].Enabled;
}
}
}
if (reinserted)
{
Host::AddKeyedOSDMessage(fmt::format("AutoEjectSlotClear{}{}", port, slot),
fmt::format(TRANSLATE_SV("MemoryCard", "Memory card in port {} / slot {} reinserted"),
port + 1, slot + 1),
Host::OSD_INFO_DURATION);
}
}
}
Host::AddIconOSDMessage("AutoEjectAllSet", ICON_FA_SD_CARD,
TRANSLATE_SV("MemoryCard", "Memory Cards reinserted."), Host::OSD_INFO_DURATION);
}
}