Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #168 from RachelBryk/extract-files
Fix extracting files on partition > 0.
  • Loading branch information
Parlane committed Mar 14, 2014
2 parents 76e3a74 + f6dfc1f commit 12c2e34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Core/DolphinWX/ISOProperties.cpp
Expand Up @@ -733,7 +733,7 @@ void CISOProperties::OnExtractFile(wxCommandEvent& WXUNUSED (event))

if (DiscIO::IsVolumeWiiDisc(OpenISO))
{
int partitionNum = wxAtoi(File.Mid(File.find_first_of("/"), 1));
int partitionNum = wxAtoi(File.Mid(File.find_first_of("/") - 1, 1));
File.Remove(0, File.find_first_of("/") +1); // Remove "Partition x/"
WiiDisc.at(partitionNum).FileSystem->ExportFile(WxStrToStr(File).c_str(), WxStrToStr(Path).c_str());
}
Expand Down Expand Up @@ -872,7 +872,7 @@ void CISOProperties::OnExtractDir(wxCommandEvent& event)

if (DiscIO::IsVolumeWiiDisc(OpenISO))
{
int partitionNum = wxAtoi(Directory.Mid(Directory.find_first_of("/"), 1));
int partitionNum = wxAtoi(Directory.Mid(Directory.find_first_of("/") - 1, 1));
Directory.Remove(0, Directory.find_first_of("/") +1); // Remove "Partition x/"
ExportDir(WxStrToStr(Directory).c_str(), WxStrToStr(Path).c_str(), partitionNum);
}
Expand Down

0 comments on commit 12c2e34

Please sign in to comment.