diff options
| author | JosJuice <josjuice@gmail.com> | 2017-07-08 15:17:05 +0200 |
|---|---|---|
| committer | JosJuice <josjuice@gmail.com> | 2017-07-08 15:17:05 +0200 |
| commit | edc7a4c89586372e66aee557afaea0a35ce2e203 (patch) | |
| tree | b247cdf73f574b8887dd1e1e41edcd4451f3aa27 /Source/Core/DiscIO/DiscExtractor.cpp | |
| parent | 24f05f14f2760f2ca5b592a8d9b0da022f9bc45a (diff) | |
Fix reading FSTs for multi-disc games
It's a wonder that this managed to work for any discs at all...
Diffstat (limited to 'Source/Core/DiscIO/DiscExtractor.cpp')
| -rw-r--r-- | Source/Core/DiscIO/DiscExtractor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/DiscIO/DiscExtractor.cpp b/Source/Core/DiscIO/DiscExtractor.cpp index b56f120a67..1220aadd50 100644 --- a/Source/Core/DiscIO/DiscExtractor.cpp +++ b/Source/Core/DiscIO/DiscExtractor.cpp @@ -306,7 +306,7 @@ std::optional<u64> GetFSTSize(const Volume& volume, const Partition& partition) if (!IsDisc(volume_type)) 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; return size ? static_cast<u64>(*size) << offset_shift : std::optional<u64>(); } |
