mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-08-03 20:24:14 +02:00
Merge pull request #14705 from JosJuice/directoryblob-dtk-comment
DiscIO: Add DTK alignment comment in DirectoryBlob
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user