DiscIO: Add DTK alignment comment in DirectoryBlob
This requirement came up in the review ofe013d95. Instead of just removing the comment likee013d95did, let's add a more detailed comment.
This commit is contained in:
@@ -1252,6 +1252,9 @@ void DirectoryBlobPartition::WriteDirectory(std::vector<u8>* fst_data,
|
|||||||
std::move(content.m_source));
|
std::move(content.m_source));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// For most files, an alignment of 0x20 is enough. But some files need 0x8000,
|
||||||
|
// in particular all DTK audio files in GameCube games.
|
||||||
|
// TODO: Do any Wii games need 0x8000 alignment?
|
||||||
const u64 data_alignment = m_is_triforce ? 0x20ull : 0x8000ull;
|
const u64 data_alignment = m_is_triforce ? 0x20ull : 0x8000ull;
|
||||||
*data_offset = Common::AlignUp(*data_offset + entry.m_size, data_alignment);
|
*data_offset = Common::AlignUp(*data_offset + entry.m_size, data_alignment);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user