mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
DiscIO: Remove redundant qualifiers
This commit is contained in:
@ -207,23 +207,23 @@ bool IsGCZBlockSizeLegacyCompatible(int block_size, u64 file_size)
|
||||
return file_size % block_size == 0 && file_size % (block_size * 32) != 0;
|
||||
}
|
||||
|
||||
bool IsDiscImageBlockSizeValid(int block_size, DiscIO::BlobType format)
|
||||
bool IsDiscImageBlockSizeValid(int block_size, BlobType format)
|
||||
{
|
||||
switch (format)
|
||||
{
|
||||
case DiscIO::BlobType::GCZ:
|
||||
case BlobType::GCZ:
|
||||
// Block size "must" be a power of 2
|
||||
if (!MathUtil::IsPow2(block_size))
|
||||
return false;
|
||||
|
||||
break;
|
||||
case DiscIO::BlobType::WIA:
|
||||
case BlobType::WIA:
|
||||
// Block size must not be less than the minimum, and must be a multiple of it
|
||||
if (block_size < WIA_MIN_BLOCK_SIZE || block_size % WIA_MIN_BLOCK_SIZE != 0)
|
||||
return false;
|
||||
|
||||
break;
|
||||
case DiscIO::BlobType::RVZ:
|
||||
case BlobType::RVZ:
|
||||
// Block size must not be smaller than the minimum
|
||||
// Block sizes smaller than the large block size threshold must be a power of 2
|
||||
// Block sizes larger than that threshold must be a multiple of the threshold
|
||||
|
Reference in New Issue
Block a user