mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-25 15:31:17 +01:00
Merge pull request #2322 from JosJuice/extract-file-fix
Fix extracting files from Wii discs
This commit is contained in:
commit
87bd57e0be
@ -755,7 +755,10 @@ void CISOProperties::OnExtractFile(wxCommandEvent& WXUNUSED (event))
|
|||||||
|
|
||||||
if (OpenISO->IsWiiDisc())
|
if (OpenISO->IsWiiDisc())
|
||||||
{
|
{
|
||||||
WiiPartition* partition = reinterpret_cast<WiiPartition*>(m_Treectrl->GetItemData(m_Treectrl->GetSelection()));
|
const wxTreeItemId tree_selection = m_Treectrl->GetSelection();
|
||||||
|
WiiPartition* partition = reinterpret_cast<WiiPartition*>(m_Treectrl->GetItemData(tree_selection));
|
||||||
|
File.erase(0, m_Treectrl->GetItemText(tree_selection).length() + 1); // Remove "Partition x/"
|
||||||
|
|
||||||
partition->FileSystem->ExportFile(WxStrToStr(File), WxStrToStr(Path));
|
partition->FileSystem->ExportFile(WxStrToStr(File), WxStrToStr(Path));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -897,8 +900,10 @@ void CISOProperties::OnExtractDir(wxCommandEvent& event)
|
|||||||
|
|
||||||
if (OpenISO->IsWiiDisc())
|
if (OpenISO->IsWiiDisc())
|
||||||
{
|
{
|
||||||
WiiPartition* partition = reinterpret_cast<WiiPartition*>(m_Treectrl->GetItemData(m_Treectrl->GetSelection()));
|
const wxTreeItemId tree_selection = m_Treectrl->GetSelection();
|
||||||
Directory.erase(0, m_Treectrl->GetItemText(m_Treectrl->GetSelection()).length() + 1); // Remove "Partition x/"
|
WiiPartition* partition = reinterpret_cast<WiiPartition*>(m_Treectrl->GetItemData(tree_selection));
|
||||||
|
Directory.erase(0, m_Treectrl->GetItemText(tree_selection).length() + 1); // Remove "Partition x/"
|
||||||
|
|
||||||
ExportDir(WxStrToStr(Directory), WxStrToStr(Path), partition);
|
ExportDir(WxStrToStr(Directory), WxStrToStr(Path), partition);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user