mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 05:47:56 -07:00
Fix extracting dols.
There is no "/" after partition number when extracting a dol. Also the .remove is completely unneeded.
This commit is contained in:
parent
efac8d5a5e
commit
aa3ca6d8ea
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user