ISOProperties: show all paritions on property page.

This commit is contained in:
magumagu 2014-06-15 21:44:21 -07:00 committed by JosJuice
parent 4bb48d09dd
commit a09283cf9f
1 changed files with 13 additions and 10 deletions

View File

@ -130,20 +130,23 @@ CISOProperties::CISOProperties(const std::string fileName, wxWindow* parent, wxW
bool IsWiiDisc = DiscIO::IsVolumeWiiDisc(OpenISO); bool IsWiiDisc = DiscIO::IsVolumeWiiDisc(OpenISO);
if (IsWiiDisc) if (IsWiiDisc)
{ {
for (u32 i = 0; i < 0xFFFFFFFF; i++) // yes, technically there can be OVER NINE THOUSAND partitions... for (int group = 0; group < 4; group++)
{ {
WiiPartition temp; for (u32 i = 0; i < 0xFFFFFFFF; i++) // yes, technically there can be OVER NINE THOUSAND partitions...
if ((temp.Partition = DiscIO::CreateVolumeFromFilename(fileName, 0, i)) != nullptr)
{ {
if ((temp.FileSystem = DiscIO::CreateFileSystem(temp.Partition)) != nullptr) WiiPartition temp;
if ((temp.Partition = DiscIO::CreateVolumeFromFilename(fileName, group, i)) != nullptr)
{ {
temp.FileSystem->GetFileList(temp.Files); if ((temp.FileSystem = DiscIO::CreateFileSystem(temp.Partition)) != nullptr)
WiiDisc.push_back(temp); {
temp.FileSystem->GetFileList(temp.Files);
WiiDisc.push_back(temp);
}
}
else
{
break;
} }
}
else
{
break;
} }
} }
} }