remove now unneeded Q_ASSERTs
Signed-off-by: Tayou <git@tayou.org>
This commit is contained in:
parent
7d5206818b
commit
0fe3241df6
@ -235,8 +235,6 @@ bool processPackPNG(const ResourcePack& pack)
|
|||||||
return false; // not processed correctly; https://github.com/PrismLauncher/PrismLauncher/issues/1740
|
return false; // not processed correctly; https://github.com/PrismLauncher/PrismLauncher/issues/1740
|
||||||
}
|
}
|
||||||
case ResourceType::ZIPFILE: {
|
case ResourceType::ZIPFILE: {
|
||||||
Q_ASSERT(pack.type() == ResourceType::ZIPFILE);
|
|
||||||
|
|
||||||
QuaZip zip(pack.fileinfo().filePath());
|
QuaZip zip(pack.fileinfo().filePath());
|
||||||
if (!zip.open(QuaZip::mdUnzip))
|
if (!zip.open(QuaZip::mdUnzip))
|
||||||
return false; // can't open zip file
|
return false; // can't open zip file
|
||||||
|
@ -189,8 +189,6 @@ bool processPackPNG(const TexturePack& pack)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
case ResourceType::ZIPFILE: {
|
case ResourceType::ZIPFILE: {
|
||||||
Q_ASSERT(pack.type() == ResourceType::ZIPFILE);
|
|
||||||
|
|
||||||
QuaZip zip(pack.fileinfo().filePath());
|
QuaZip zip(pack.fileinfo().filePath());
|
||||||
if (!zip.open(QuaZip::mdUnzip))
|
if (!zip.open(QuaZip::mdUnzip))
|
||||||
return false; // can't open zip file
|
return false; // can't open zip file
|
||||||
|
Loading…
Reference in New Issue
Block a user