diff options
| author | Dentomologist <dentomologist@gmail.com> | 2026-07-14 13:52:09 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-07-14 13:52:09 -0700 |
| commit | d3b2943807dd0073f7767947466dd73cccfef319 (patch) | |
| tree | 48070123853daf08010c939c19527392c5f36dfd /Source/Core/DiscIO/DirectoryBlob.cpp | |
| parent | 00beaa84a550fe35755910d96182d04e0996450b (diff) | |
| parent | baf154de0e1f518cf48e85ef5c1a2e5196d93d74 (diff) | |
Merge pull request #14705 from JosJuice/directoryblob-dtk-comment
DiscIO: Add DTK alignment comment in DirectoryBlob
Diffstat (limited to 'Source/Core/DiscIO/DirectoryBlob.cpp')
| -rw-r--r-- | Source/Core/DiscIO/DirectoryBlob.cpp | 3 |
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); } |
