mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 20:28:56 +00:00
GCMemcardManager: Detect attempt to import multiple save files with the same internal name.
This commit is contained in:
parent
74b56a8c7f
commit
e47eb16641
3 changed files with 22 additions and 0 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue