diff options
| author | spycrab <spycrab@users.noreply.github.com> | 2017-08-26 14:41:53 +0200 |
|---|---|---|
| committer | spycrab <spycrab@users.noreply.github.com> | 2017-08-29 08:31:50 +0200 |
| commit | 1173c2f790d0c47eaba081209baa602f4b530685 (patch) | |
| tree | 5ece817cb299cc1977c72b1a5506c543eb1c5451 /Source/Core/DolphinQt2/MenuBar.cpp | |
| parent | 561d31f88755f1f6157fcd78a08c06ab45751bf2 (diff) | |
Qt: Implement "Extract Certificates from NAND"
Diffstat (limited to 'Source/Core/DolphinQt2/MenuBar.cpp')
| -rw-r--r-- | Source/Core/DolphinQt2/MenuBar.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Source/Core/DolphinQt2/MenuBar.cpp b/Source/Core/DolphinQt2/MenuBar.cpp index 99e9544302..8a1c6ec509 100644 --- a/Source/Core/DolphinQt2/MenuBar.cpp +++ b/Source/Core/DolphinQt2/MenuBar.cpp @@ -117,6 +117,9 @@ void MenuBar::AddToolsMenu() m_import_backup = tools_menu->addAction(tr("Import BootMii NAND Backup..."), [this] { emit ImportNANDBackup(); }); + m_extract_certificates = tools_menu->addAction(tr("Extract Certificates from NAND"), this, + &MenuBar::NANDExtractCertificates); + m_boot_sysmenu->setEnabled(false); connect(&Settings::Instance(), &Settings::NANDRefresh, [this] { UpdateToolsMenu(false); }); @@ -458,3 +461,15 @@ void MenuBar::ExportWiiSaves() CWiiSaveCrypted::ExportAllSaves(); } +void MenuBar::NANDExtractCertificates() +{ + if (DiscIO::NANDImporter().ExtractCertificates(File::GetUserPath(D_WIIROOT_IDX))) + { + QMessageBox::information(this, tr("Success"), + tr("Successfully extracted certificates from NAND")); + } + else + { + QMessageBox::critical(this, tr("Error"), tr("Failed to extract certificates from NAND")); + } +} |
