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
|
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 =
|
const auto& sys_menu_loader = DiscIO::CNANDContentManager::Access().GetNANDLoader(
|
||||||
DiscIO::CNANDContentManager::Access().GetNANDLoader(TITLEID_SYSMENU,
|
TITLEID_SYSMENU, Common::FROM_CONFIGURED_ROOT);
|
||||||
Common::FROM_CONFIGURED_ROOT);
|
|
||||||
if (SysMenu_Loader.IsValid())
|
if (sys_menu_loader.IsValid())
|
||||||
{
|
{
|
||||||
int sysmenuVersion = SysMenu_Loader.GetTitleVersion();
|
const int version = sys_menu_loader.GetTitleVersion();
|
||||||
char sysmenuRegion = SysMenu_Loader.GetCountryChar();
|
const char region = sys_menu_loader.GetCountryChar();
|
||||||
WiiMenuItem->Enable();
|
menu_item->Enable();
|
||||||
WiiMenuItem->SetItemLabel(
|
menu_item->SetItemLabel(wxString::Format(_("Load Wii System Menu %d%c"), version, region));
|
||||||
wxString::Format(_("Load Wii System Menu %d%c"), sysmenuVersion, sysmenuRegion));
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
WiiMenuItem->Enable(false);
|
menu_item->Enable(false);
|
||||||
WiiMenuItem->SetItemLabel(_("Load Wii System Menu"));
|
menu_item->SetItemLabel(_("Load Wii System Menu"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue