Merge pull request #6229 from JosJuice/clarify-keys-dump

Clarify the "Select the OTP/SEEPROM dump" message
This commit is contained in:
Anthony 2017-12-02 09:49:22 -08:00 committed by GitHub
commit d71f4168e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 6 deletions

View File

@ -906,9 +906,9 @@ void MainWindow::OnImportNANDBackup()
},
[this] {
return RunOnObject(this, [this] {
return QFileDialog::getOpenFileName(this, tr("Select the OTP/SEEPROM dump"),
return QFileDialog::getOpenFileName(this, tr("Select the keys file (OTP/SEEPROM dump)"),
QDir::currentPath(),
tr("BootMii OTP/SEEPROM dump (*.bin);;"
tr("BootMii keys file (*.bin);;"
"All Files (*)"))
.toStdString();
});

View File

@ -1306,10 +1306,11 @@ void CFrame::OnImportBootMiiBackup(wxCommandEvent& WXUNUSED(event))
DiscIO::NANDImporter().ImportNANDBin(
file_name, [&dialog] { dialog.Pulse(); },
[this] {
return WxStrToStr(wxFileSelector(
_("Select the OTP/SEEPROM dump"), wxEmptyString, wxEmptyString, wxEmptyString,
_("BootMii OTP/SEEPROM dump (*.bin)") + "|*.bin|" + wxGetTranslation(wxALL_FILES),
wxFD_OPEN | wxFD_PREVIEW | wxFD_FILE_MUST_EXIST, this));
return WxStrToStr(wxFileSelector(_("Select the keys file (OTP/SEEPROM dump)"),
wxEmptyString, wxEmptyString, wxEmptyString,
_("BootMii keys file (*.bin)") + "|*.bin|" +
wxGetTranslation(wxALL_FILES),
wxFD_OPEN | wxFD_PREVIEW | wxFD_FILE_MUST_EXIST, this));
});
wxPostEvent(GetMenuBar(), wxCommandEvent{DOLPHIN_EVT_UPDATE_LOAD_WII_MENU_ITEM});
}