Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Handle 1 partition only, fixes Issue #6353
  • Loading branch information
Parlane committed Jun 17, 2013
1 parent 448e090 commit 43a4d41
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions Source/Core/DolphinWX/Src/ISOProperties.cpp
Expand Up @@ -818,14 +818,24 @@ void CISOProperties::OnExtractDir(wxCommandEvent& event)
void CISOProperties::OnExtractDataFromHeader(wxCommandEvent& event)
{
std::vector<const DiscIO::SFileInfo *> fst;
DiscIO::IFileSystem *FS = 0;
DiscIO::IFileSystem *FS = NULL;
wxString Path = wxDirSelector(_("Choose the folder to extract to"));

if (Path.empty())
return;

if (DiscIO::IsVolumeWiiDisc(OpenISO))
FS = WiiDisc.at(1).FileSystem;
if(WiiDisc.size() > 0)
{
// Get the filesystem of the LAST partition
FS = WiiDisc.at(WiiDisc.size() - 1).FileSystem;
}
else
{
PanicAlertT("No partitions found for: %s!",
WxStrToStr(Path).c_str());
return;
}
else
FS = pFileSystem;

Expand Down

0 comments on commit 43a4d41

Please sign in to comment.