mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-02 14:19:02 +00:00
DiscIO: Use the correct offset shift for DOL exports
This commit is contained in:
parent
0b71b60ef0
commit
0ddb6f9328
1 changed files with 1 additions and 1 deletions
|
@ -155,7 +155,7 @@ bool FileSystemGCWii::ExportApploader(const std::string& _rExportFolder) const
|
||||||
std::optional<u64> FileSystemGCWii::GetBootDOLOffset() const
|
std::optional<u64> FileSystemGCWii::GetBootDOLOffset() const
|
||||||
{
|
{
|
||||||
std::optional<u32> offset = m_rVolume->ReadSwapped<u32>(0x420, m_partition);
|
std::optional<u32> offset = m_rVolume->ReadSwapped<u32>(0x420, m_partition);
|
||||||
return offset ? static_cast<u64>(*offset) << 2 : std::optional<u64>();
|
return offset ? static_cast<u64>(*offset) << m_offset_shift : std::optional<u64>();
|
||||||
}
|
}
|
||||||
|
|
||||||
std::optional<u32> FileSystemGCWii::GetBootDOLSize(u64 dol_offset) const
|
std::optional<u32> FileSystemGCWii::GetBootDOLSize(u64 dol_offset) const
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue