From 96d7c398914ae6d1cc6f5d9a803ae29bcf931493 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Lam?= Date: Thu, 26 Oct 2017 21:22:16 +0200 Subject: NANDImporter: Add support for dumps that don't include keys This adds support for NAND images that only include the NAND (i.e. without the OTP/SEEPROM dump appended at the end of the file). --- Source/Core/DolphinWX/FrameTools.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'Source/Core/DolphinWX/FrameTools.cpp') 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}); } -- cgit v1.2.3