diff options
| author | naari3 <naari.named@gmail.com> | 2026-04-25 19:48:00 +0900 |
|---|---|---|
| committer | naari3 <naari.named@gmail.com> | 2026-04-25 19:48:00 +0900 |
| commit | e013d950533a5b6e6e411347f2997d4dff5f4951 (patch) | |
| tree | 5635c19c2320b5af4130de03f46faba2700c9818 /Source/Core/DolphinQt/Config/GeckoCodeWidget.cpp | |
| parent | 6871428a8146bf4513123bbe9d8b39948d290a4b (diff) | |
DirectoryBlob: fix data alignment for GC/Triforce and skip Triforce DIMM memory range
The 0x8000 alignment in DirectoryBlob is needed for Wii disc group encryption,
but for GC/Triforce it inflates file offsets unnecessarily. Use 0x20 alignment
for Triforce (matching original disc layout) while keeping 0x8000 for GC due
to DTK audio streaming requirements.
On Triforce games with many files, the inflated offsets can land in the
AMMediaboard DIMM memory range (0x1F000000-0x1F800000). Reads from that
region return SRAM data instead of disc data, causing the game to hang.
Skip the DIMM range when assigning per-file data offsets if any portion of
the file would overlap [0x1F000000, 0x1F800000).
Diffstat (limited to 'Source/Core/DolphinQt/Config/GeckoCodeWidget.cpp')
0 files changed, 0 insertions, 0 deletions
