From baf154de0e1f518cf48e85ef5c1a2e5196d93d74 Mon Sep 17 00:00:00 2001 From: JosJuice Date: Sun, 28 Jun 2026 11:05:52 +0200 Subject: 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. --- Source/Core/DiscIO/DirectoryBlob.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Source/Core/DiscIO/DirectoryBlob.cpp') diff --git a/Source/Core/DiscIO/DirectoryBlob.cpp b/Source/Core/DiscIO/DirectoryBlob.cpp index 332510efca..d4f9e2bac7 100644 --- a/Source/Core/DiscIO/DirectoryBlob.cpp +++ b/Source/Core/DiscIO/DirectoryBlob.cpp @@ -1252,6 +1252,9 @@ void DirectoryBlobPartition::WriteDirectory(std::vector* fst_data, 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; *data_offset = Common::AlignUp(*data_offset + entry.m_size, data_alignment); } -- cgit v1.2.3