diff --git a/Source/Core/DolphinWX/FrameTools.cpp b/Source/Core/DolphinWX/FrameTools.cpp index e68c2a27f9..d4e3c642e5 100644 --- a/Source/Core/DolphinWX/FrameTools.cpp +++ b/Source/Core/DolphinWX/FrameTools.cpp @@ -1195,23 +1195,22 @@ void CFrame::OnInstallWAD(wxCommandEvent& event) void CFrame::UpdateLoadWiiMenuItem() const { - auto* const WiiMenuItem = GetMenuBar()->FindItem(IDM_LOAD_WII_MENU); + auto* const menu_item = GetMenuBar()->FindItem(IDM_LOAD_WII_MENU); - const DiscIO::CNANDContentLoader& SysMenu_Loader = - DiscIO::CNANDContentManager::Access().GetNANDLoader(TITLEID_SYSMENU, - Common::FROM_CONFIGURED_ROOT); - if (SysMenu_Loader.IsValid()) + const auto& sys_menu_loader = DiscIO::CNANDContentManager::Access().GetNANDLoader( + TITLEID_SYSMENU, Common::FROM_CONFIGURED_ROOT); + + if (sys_menu_loader.IsValid()) { - int sysmenuVersion = SysMenu_Loader.GetTitleVersion(); - char sysmenuRegion = SysMenu_Loader.GetCountryChar(); - WiiMenuItem->Enable(); - WiiMenuItem->SetItemLabel( - wxString::Format(_("Load Wii System Menu %d%c"), sysmenuVersion, sysmenuRegion)); + 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 { - WiiMenuItem->Enable(false); - WiiMenuItem->SetItemLabel(_("Load Wii System Menu")); + menu_item->Enable(false); + menu_item->SetItemLabel(_("Load Wii System Menu")); } }