mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-20 19:44:57 +00:00
Merge pull request #7297 from booto/no-dol
ExportDOL: ActionReplay has a 0'd dol offset. Don't try to extract.
This commit is contained in:
commit
d425732837
1 changed files with 7 additions and 1 deletions
|
@ -263,7 +263,13 @@ std::optional<u64> GetBootDOLOffset(const Volume& volume, const Partition& parti
|
|||
if (!IsDisc(volume_type))
|
||||
return {};
|
||||
|
||||
return volume.ReadSwappedAndShifted(0x420, partition);
|
||||
std::optional<u64> dol_offset = volume.ReadSwappedAndShifted(0x420, partition);
|
||||
|
||||
// Datel AR disc has 0x00000000 as the offset (invalid) and doesn't use it in the AppLoader.
|
||||
if (dol_offset && *dol_offset == 0)
|
||||
dol_offset.reset();
|
||||
|
||||
return dol_offset;
|
||||
}
|
||||
|
||||
std::optional<u32> GetBootDOLSize(const Volume& volume, const Partition& partition, u64 dol_offset)
|
||||
|
|
Loading…
Add table
Reference in a new issue