mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -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:
@ -182,7 +182,7 @@ void InfoPanel::LoadISODetails()
|
||||
m_fst->SetValue(StrToWxStr(std::to_string(m_opened_iso->GetFSTSize())));
|
||||
if (m_ios_version)
|
||||
{
|
||||
ES::TMDReader tmd{m_opened_iso->GetTMD()};
|
||||
const IOS::ES::TMDReader tmd = m_opened_iso->GetTMD();
|
||||
if (tmd.IsValid())
|
||||
m_ios_version->SetValue(StringFromFormat("IOS%u", static_cast<u32>(tmd.GetIOSId())));
|
||||
}
|
||||
@ -223,7 +223,7 @@ wxStaticBoxSizer* InfoPanel::CreateISODetailsSizer()
|
||||
{_("Apploader Date:"), m_date},
|
||||
{_("FST Size:"), m_fst},
|
||||
}};
|
||||
if (!m_opened_iso->GetTMD().empty())
|
||||
if (m_opened_iso->GetTMD().IsValid())
|
||||
controls.emplace_back(_("IOS Version:"), m_ios_version);
|
||||
|
||||
const int space_10 = FromDIP(10);
|
||||
|
Reference in New Issue
Block a user