FrameTools: Clean up variable naming in UpdateLoadWiiMenuItem
This commit is contained in:
parent
2acf3570e0
commit
be04215857
|
@ -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"));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue