mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-19 02:36:27 +01:00
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.
This commit is contained in:
parent
5a1729877e
commit
b5f32b9699
@ -1075,7 +1075,9 @@ void CGameListCtrl::CompressSelection(bool _compress)
|
|||||||
for (u32 i = 0; i < m_numberItem; i++)
|
for (u32 i = 0; i < m_numberItem; i++)
|
||||||
{
|
{
|
||||||
const GameListItem* iso = GetSelectedISO();
|
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;
|
continue;
|
||||||
|
|
||||||
if (!iso->IsCompressed() && _compress)
|
if (!iso->IsCompressed() && _compress)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user