summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinWX/FrameTools.cpp
diff options
context:
space:
mode:
authorLeo Lam <leolino.lam@gmail.com>2017-10-29 10:28:54 +0100
committerGitHub <noreply@github.com>2017-10-29 10:28:54 +0100
commit201ce4b600e8c8304e2a1e4d0c6c1f3acddb2f45 (patch)
tree1fc659345a4c78653a28e50724c1156aa7268f79 /Source/Core/DolphinWX/FrameTools.cpp
parent5d449c00e63e9e4dceeda1bca385b6831de12e0f (diff)
parent96d7c398914ae6d1cc6f5d9a803ae29bcf931493 (diff)
Merge pull request #6144 from leoetlino/nand-import-fix
NANDImporter: Add support for dumps that don't include keys
Diffstat (limited to 'Source/Core/DolphinWX/FrameTools.cpp')
-rw-r--r--Source/Core/DolphinWX/FrameTools.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/Source/Core/DolphinWX/FrameTools.cpp b/Source/Core/DolphinWX/FrameTools.cpp
index 05b819a99b..752448ea95 100644
--- a/Source/Core/DolphinWX/FrameTools.cpp
+++ b/Source/Core/DolphinWX/FrameTools.cpp
@@ -1301,7 +1301,14 @@ void CFrame::OnImportBootMiiBackup(wxCommandEvent& WXUNUSED(event))
wxProgressDialog dialog(_("Importing NAND backup"), _("Working..."), 100, this,
wxPD_APP_MODAL | wxPD_ELAPSED_TIME | wxPD_SMOOTH);
- DiscIO::NANDImporter().ImportNANDBin(file_name, [&dialog] { dialog.Pulse(); });
+ 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));
+ });
wxPostEvent(GetMenuBar(), wxCommandEvent{DOLPHIN_EVT_UPDATE_LOAD_WII_MENU_ITEM});
}