mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
Handle 1 partition only, fixes Issue #6353
This commit is contained in:
@ -818,14 +818,24 @@ void CISOProperties::OnExtractDir(wxCommandEvent& event)
|
|||||||
void CISOProperties::OnExtractDataFromHeader(wxCommandEvent& event)
|
void CISOProperties::OnExtractDataFromHeader(wxCommandEvent& event)
|
||||||
{
|
{
|
||||||
std::vector<const DiscIO::SFileInfo *> fst;
|
std::vector<const DiscIO::SFileInfo *> fst;
|
||||||
DiscIO::IFileSystem *FS = 0;
|
DiscIO::IFileSystem *FS = NULL;
|
||||||
wxString Path = wxDirSelector(_("Choose the folder to extract to"));
|
wxString Path = wxDirSelector(_("Choose the folder to extract to"));
|
||||||
|
|
||||||
if (Path.empty())
|
if (Path.empty())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (DiscIO::IsVolumeWiiDisc(OpenISO))
|
if (DiscIO::IsVolumeWiiDisc(OpenISO))
|
||||||
FS = WiiDisc.at(1).FileSystem;
|
if(WiiDisc.size() > 0)
|
||||||
|
{
|
||||||
|
// Get the filesystem of the LAST partition
|
||||||
|
FS = WiiDisc.at(WiiDisc.size() - 1).FileSystem;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
PanicAlertT("No partitions found for: %s!",
|
||||||
|
WxStrToStr(Path).c_str());
|
||||||
|
return;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
FS = pFileSystem;
|
FS = pFileSystem;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user