mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
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.
This commit is contained in:
@ -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))
|
||||
|
Reference in New Issue
Block a user