From aa3ca6d8ea233be111ee105b74c16188a3d0affc Mon Sep 17 00:00:00 2001 From: Rachel Bryk Date: Fri, 14 Mar 2014 21:20:20 -0400 Subject: [PATCH] Fix extracting dols. There is no "/" after partition number when extracting a dol. Also the .remove is completely unneeded. --- Source/Core/DolphinWX/ISOProperties.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Source/Core/DolphinWX/ISOProperties.cpp b/Source/Core/DolphinWX/ISOProperties.cpp index 7070c6b7ff..3be4a27cbd 100644 --- a/Source/Core/DolphinWX/ISOProperties.cpp +++ b/Source/Core/DolphinWX/ISOProperties.cpp @@ -893,8 +893,7 @@ void CISOProperties::OnExtractDataFromHeader(wxCommandEvent& event) if (DiscIO::IsVolumeWiiDisc(OpenISO)) { wxString Directory = m_Treectrl->GetItemText(m_Treectrl->GetSelection()); - std::size_t partitionNum = (std::size_t)wxAtoi(Directory.Mid(Directory.find_first_of("/"), 1)); - Directory.Remove(0, Directory.find_first_of("/") +1); // Remove "Partition x/" + std::size_t partitionNum = (std::size_t)wxAtoi(Directory.Mid(Directory.find_first_of("0123456789"), 2)); if (WiiDisc.size() > partitionNum) {