mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
VolumeWiiCrypted: Replace ChangePartition with a partition parameter
By removing mutable state in VolumeWiiCrypted, this change makes partition-related code simpler. It also gets rid of other ugly things, like ISOProperties's "over 9000" loop that creates a list of partitions by trying possible combinations, and DiscScrubber's volume swapping that recreates the entire volume when it needs to change partition.
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)
|
||||
{
|
||||
const IOS::ES::TMDReader tmd = m_opened_iso->GetTMD();
|
||||
const IOS::ES::TMDReader tmd = m_opened_iso->GetTMD(m_opened_iso->GetGamePartition());
|
||||
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().IsValid())
|
||||
if (m_opened_iso->GetTMD(m_opened_iso->GetGamePartition()).IsValid())
|
||||
controls.emplace_back(_("IOS Version:"), m_ios_version);
|
||||
|
||||
const int space_10 = FromDIP(10);
|
||||
|
Reference in New Issue
Block a user