Skip to content

Commit

Permalink
ExportDOL: ActionReplay has a 0'd dol offset. Don't try to extract.
Browse files Browse the repository at this point in the history
  • Loading branch information
booto committed Aug 2, 2018
1 parent 14e156c commit 800c157
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Source/Core/DiscIO/DiscExtractor.cpp
Expand Up @@ -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)
Expand Down

0 comments on commit 800c157

Please sign in to comment.