From b5f32b9699b6ac3707992228d097a857c6ebdfbe Mon Sep 17 00:00:00 2001 From: JosJuice Date: Fri, 27 Nov 2015 16:53:47 +0100 Subject: [PATCH] DolphinWX: Correct a compression condition The volume type check didn't handle DOL/ELF files, and the blob type check didn't handle formats like CISO and relied on filename extensions. --- Source/Core/DolphinWX/GameListCtrl.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/Core/DolphinWX/GameListCtrl.cpp b/Source/Core/DolphinWX/GameListCtrl.cpp index 30864cac54..7ed9184c50 100644 --- a/Source/Core/DolphinWX/GameListCtrl.cpp +++ b/Source/Core/DolphinWX/GameListCtrl.cpp @@ -1075,7 +1075,9 @@ void CGameListCtrl::CompressSelection(bool _compress) for (u32 i = 0; i < m_numberItem; i++) { const GameListItem* iso = GetSelectedISO(); - if (iso->GetPlatform() == DiscIO::IVolume::WII_WAD || iso->GetFileName().rfind(".wbfs") != std::string::npos) + if (iso->GetPlatform() != DiscIO::IVolume::GAMECUBE_DISC && iso->GetPlatform() != DiscIO::IVolume::WII_DISC) + continue; + if (iso->GetBlobType() != DiscIO::BlobType::PLAIN && iso->GetBlobType() != DiscIO::BlobType::GCZ) continue; if (!iso->IsCompressed() && _compress)