diff options
| author | Rachel Bryk <RachelBryk@gmail.com> | 2014-03-14 19:09:36 -0400 |
|---|---|---|
| committer | Rachel Bryk <RachelBryk@gmail.com> | 2014-03-14 19:09:36 -0400 |
| commit | f6dfc1f6531d28ebff7ffae642a02f9ce6527307 (patch) | |
| tree | ddfc96e74b82ad954235745c414af5b6343286aa /Source | |
| parent | a9a8c730748b8c8a2e83feb4c38626361cf9daa1 (diff) | |
Fix extracting files on partition > 0.
Diffstat (limited to 'Source')
| -rw-r--r-- | Source/Core/DolphinWX/ISOProperties.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/DolphinWX/ISOProperties.cpp b/Source/Core/DolphinWX/ISOProperties.cpp index a461389cd1..2d5f54f28e 100644 --- a/Source/Core/DolphinWX/ISOProperties.cpp +++ b/Source/Core/DolphinWX/ISOProperties.cpp @@ -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()); } @@ -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); } |
