summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorMatthew Parlane <parlane@gmail.com>2013-06-17 19:25:55 +1200
committerMatthew Parlane <parlane@gmail.com>2013-06-17 19:25:55 +1200
commit43a4d418896f47ea971ccd83d5630a97f0f0000b (patch)
tree69ac6ed38ac612754ce56bbfc64577354e67f6c5 /Source/Core
parent448e0900d11fa1fece832e2f6034710528637d9a (diff)
Handle 1 partition only, fixes Issue #6353
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/DolphinWX/Src/ISOProperties.cpp14
1 files changed, 12 insertions, 2 deletions
diff --git a/Source/Core/DolphinWX/Src/ISOProperties.cpp b/Source/Core/DolphinWX/Src/ISOProperties.cpp
index 3b2a79748d..efd84521f8 100644
--- a/Source/Core/DolphinWX/Src/ISOProperties.cpp
+++ b/Source/Core/DolphinWX/Src/ISOProperties.cpp
@@ -818,14 +818,24 @@ void CISOProperties::OnExtractDir(wxCommandEvent& event)
void CISOProperties::OnExtractDataFromHeader(wxCommandEvent& event)
{
std::vector<const DiscIO::SFileInfo *> fst;
- DiscIO::IFileSystem *FS = 0;
+ DiscIO::IFileSystem *FS = NULL;
wxString Path = wxDirSelector(_("Choose the folder to extract to"));
if (Path.empty())
return;
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
FS = pFileSystem;