mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Run code through the advanced tool 'sed' to remove trailing whitespace.
This commit is contained in:
@ -17,10 +17,10 @@ CISOFileReader::CISOFileReader(std::FILE* file)
|
||||
: m_file(file)
|
||||
{
|
||||
m_size = m_file.GetSize();
|
||||
|
||||
|
||||
CISOHeader header;
|
||||
m_file.ReadArray(&header, 1);
|
||||
|
||||
|
||||
m_block_size = header.block_size;
|
||||
|
||||
MapType count = 0;
|
||||
@ -55,7 +55,7 @@ bool CISOFileReader::Read(u64 offset, u64 nbytes, u8* out_ptr)
|
||||
{
|
||||
auto const block = offset / m_block_size;
|
||||
auto const data_offset = offset % m_block_size;
|
||||
|
||||
|
||||
auto const bytes_to_read = std::min(m_block_size - data_offset, nbytes);
|
||||
if (block < CISO_MAP_SIZE && UNUSED_BLOCK_ID != m_ciso_map[block])
|
||||
{
|
||||
@ -77,7 +77,7 @@ bool CISOFileReader::Read(u64 offset, u64 nbytes, u8* out_ptr)
|
||||
nbytes -= bytes_to_read;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user