summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2026-06-28 11:05:52 +0200
committerJosJuice <josjuice@gmail.com>2026-07-14 18:39:56 +0200
commitbaf154de0e1f518cf48e85ef5c1a2e5196d93d74 (patch)
treeee195c620325125645456d6de695f48b6b1577b3 /Source
parent6de526c684ee6dd8b6fc3447dae858ae480ccbb5 (diff)
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.
Diffstat (limited to 'Source')
-rw-r--r--Source/Core/DiscIO/DirectoryBlob.cpp3
1 files changed, 3 insertions, 0 deletions
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<u8>* 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);
}