mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 19:58:53 +00:00
Fix reading FSTs for multi-disc games
It's a wonder that this managed to work for any discs at all...
This commit is contained in:
parent
24f05f14f2
commit
edc7a4c895
1 changed files with 1 additions and 1 deletions
|
@ -306,7 +306,7 @@ std::optional<u64> GetFSTSize(const Volume& volume, const Partition& partition)
|
||||||
if (!IsDisc(volume_type))
|
if (!IsDisc(volume_type))
|
||||||
return {};
|
return {};
|
||||||
|
|
||||||
const std::optional<u32> size = volume.ReadSwapped<u64>(0x428, partition);
|
const std::optional<u32> size = volume.ReadSwapped<u32>(0x428, partition);
|
||||||
const u8 offset_shift = volume_type == Platform::WII_DISC ? 2 : 0;
|
const u8 offset_shift = volume_type == Platform::WII_DISC ? 2 : 0;
|
||||||
return size ? static_cast<u64>(*size) << offset_shift : std::optional<u64>();
|
return size ? static_cast<u64>(*size) << offset_shift : std::optional<u64>();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue