DiscIO: Add DTK alignment comment in DirectoryBlob

This requirement came up in the review of e013d95. Instead of just
removing the comment like e013d95 did, let's add a more detailed
comment.
This commit is contained in:
JosJuice
2026-07-14 18:39:56 +02:00
parent 6de526c684
commit baf154de0e
+3
View File
@@ -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);
} }