mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
GCMemcardManager: Detect attempt to import multiple save files with the same internal name.
This commit is contained in:
@ -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))
|
||||
|
Reference in New Issue
Block a user