mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-13 15:59:23 +01:00
GCMemcardManager: Small cleanups.
This commit is contained in:
parent
e00e6e1a8c
commit
7cf991bd8a
@ -300,7 +300,7 @@ void GCMemcardManager::SetSlotFile(int slot, QString path)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
m_slot_memcard[slot] = nullptr;
|
m_slot_memcard[slot] = nullptr;
|
||||||
ModalMessageBox::critical(
|
ModalMessageBox::warning(
|
||||||
this, tr("Error"),
|
this, tr("Error"),
|
||||||
tr("Failed opening memory card:\n%1").arg(GetErrorMessagesForErrorCode(error_code)));
|
tr("Failed opening memory card:\n%1").arg(GetErrorMessagesForErrorCode(error_code)));
|
||||||
}
|
}
|
||||||
@ -315,7 +315,8 @@ void GCMemcardManager::SetSlotFileInteractive(int slot)
|
|||||||
this,
|
this,
|
||||||
slot == 0 ? tr("Set memory card file for Slot A") : tr("Set memory card file for Slot B"),
|
slot == 0 ? tr("Set memory card file for Slot A") : tr("Set memory card file for Slot B"),
|
||||||
QString::fromStdString(File::GetUserPath(D_GCUSER_IDX)),
|
QString::fromStdString(File::GetUserPath(D_GCUSER_IDX)),
|
||||||
tr("GameCube Memory Cards (*.raw *.gcp)") + QStringLiteral(";;") + tr("All Files (*)")));
|
QStringLiteral("%1 (*.raw *.gcp);;%2 (*)")
|
||||||
|
.arg(tr("GameCube Memory Cards"), tr("All Files"))));
|
||||||
if (!path.isEmpty())
|
if (!path.isEmpty())
|
||||||
m_slot_file_edit[slot]->setText(path);
|
m_slot_file_edit[slot]->setText(path);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user