mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-12 21:31:39 +00:00
DiscIO: Remove redundant qualifiers
This commit is contained in:
parent
bc3c3eb79a
commit
ecafd8058f
9 changed files with 45 additions and 53 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue