summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinWX/MainMenuBar.cpp
diff options
context:
space:
mode:
authorLéo Lam <leo@innovatetechnologi.es>2017-05-07 01:30:44 +0200
committerLéo Lam <leo@innovatetechnologi.es>2017-05-07 01:30:44 +0200
commit6426ea2b1ae8e98ed1dc52cc40345609073bdb09 (patch)
treed0de1658b016ff48577c6cc94440a47942a278bc /Source/Core/DolphinWX/MainMenuBar.cpp
parentc36d24a851ea8dc00c55de081be6f1bfa2f802c0 (diff)
WX: Disable NAND import when emulation is running
Oversight from the NAND import PR. Allowing this while Wii emulation is running is a recipe for failure.
Diffstat (limited to 'Source/Core/DolphinWX/MainMenuBar.cpp')
-rw-r--r--Source/Core/DolphinWX/MainMenuBar.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/Core/DolphinWX/MainMenuBar.cpp b/Source/Core/DolphinWX/MainMenuBar.cpp
index f5cae338ab..c29cbbbef4 100644
--- a/Source/Core/DolphinWX/MainMenuBar.cpp
+++ b/Source/Core/DolphinWX/MainMenuBar.cpp
@@ -560,8 +560,11 @@ void MainMenuBar::RefreshWiiToolsLabels() const
// For similar reasons, it should not be possible to export or import saves, because this can
// result in the emulated software being confused, or even worse, exported saves having
// inconsistent data.
- for (const int index : {IDM_MENU_INSTALL_WAD, IDM_EXPORT_ALL_SAVE, IDM_IMPORT_SAVE})
+ for (const int index : {IDM_MENU_INSTALL_WAD, IDM_EXPORT_ALL_SAVE, IDM_IMPORT_SAVE,
+ IDM_IMPORT_NAND, IDM_EXTRACT_CERTIFICATES})
+ {
FindItem(index)->Enable(!Core::IsRunning() || !SConfig::GetInstance().bWii);
+ }
}
void MainMenuBar::RefreshWiiSystemMenuLabel() const