GCMemcardManager: Detect attempt to import multiple save files with the same internal name.

This commit is contained in:
Admiral H. Curtiss
2021-01-27 22:15:18 +01:00
parent 74b56a8c7f
commit e47eb16641
3 changed files with 22 additions and 0 deletions

View File

@ -515,6 +515,12 @@ void GCMemcardManager::ImportFiles(int slot, const std::vector<Memcard::Savefile
"", static_cast<int>(number_of_blocks)));
}
if (Memcard::HasDuplicateIdentity(savefiles))
{
error_messages.push_back(
tr("At least two of the selected save files have the same internal filename."));
}
for (const Memcard::Savefile& savefile : savefiles)
{
if (card->TitlePresent(savefile.dir_entry))