From c1a139e8ace17e45e8ca6977b6f6b19a1a4195f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Lam?= Date: Sat, 11 Feb 2017 08:57:47 +0100 Subject: Use ESFormats for TMDs We already have a TMDReader, so let's actually use it. And move ESFormats to IOS::ES, since it's definitely part of IOS. This adds a DiscIO dependency on Core which will be fixed in a follow-up PR. --- Source/Core/DolphinWX/FrameTools.cpp | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) (limited to 'Source/Core/DolphinWX/FrameTools.cpp') diff --git a/Source/Core/DolphinWX/FrameTools.cpp b/Source/Core/DolphinWX/FrameTools.cpp index e1a9271744..535dc568aa 100644 --- a/Source/Core/DolphinWX/FrameTools.cpp +++ b/Source/Core/DolphinWX/FrameTools.cpp @@ -1225,23 +1225,7 @@ void CFrame::OnInstallWAD(wxCommandEvent& event) void CFrame::UpdateLoadWiiMenuItem() const { - auto* const menu_item = GetMenuBar()->FindItem(IDM_LOAD_WII_MENU); - - const auto& sys_menu_loader = DiscIO::CNANDContentManager::Access().GetNANDLoader( - TITLEID_SYSMENU, Common::FROM_CONFIGURED_ROOT); - - if (sys_menu_loader.IsValid()) - { - const int version = sys_menu_loader.GetTitleVersion(); - const char region = sys_menu_loader.GetCountryChar(); - menu_item->Enable(); - menu_item->SetItemLabel(wxString::Format(_("Load Wii System Menu %d%c"), version, region)); - } - else - { - menu_item->Enable(false); - menu_item->SetItemLabel(_("Load Wii System Menu")); - } + GetMenuBar()->Refresh(true, nullptr); } void CFrame::OnFifoPlayer(wxCommandEvent& WXUNUSED(event)) -- cgit v1.2.3