Don't show compress iso option for wbfs and ciso files.

Fixes issue 5809.
This commit is contained in:
rog 2012-12-25 06:30:13 -05:00
parent 5ac1e908b1
commit b3714f4874
1 changed files with 2 additions and 1 deletions

View File

@ -928,7 +928,8 @@ void CGameListCtrl::OnRightClick(wxMouseEvent& event)
{
if (selected_iso->IsCompressed())
popupMenu->Append(IDM_COMPRESSGCM, _("Decompress ISO..."));
else
else if (selected_iso->GetFileName().substr(selected_iso->GetFileName().find_last_of(".")) != ".ciso"
&& selected_iso->GetFileName().substr(selected_iso->GetFileName().find_last_of(".")) != ".wbfs")
popupMenu->Append(IDM_COMPRESSGCM, _("Compress ISO..."));
} else
popupMenu->Append(IDM_LIST_INSTALLWAD, _("Install to Wii Menu"));