diff options
| author | Lioncash <mathew1800@gmail.com> | 2015-09-12 00:50:00 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2015-09-12 00:50:00 -0400 |
| commit | 113cc119de28050df16052139481e2b334da38bc (patch) | |
| tree | 508741e5074c8a3440dee8ebd1d268dc4feb04f5 /Source/Core/DiscIO/VolumeWiiCrypted.cpp | |
| parent | fa62018c40b71dec96df335f840deacdbb8279d4 (diff) | |
| parent | e0a47c11f5653ecffb79adfac29c19a163baab8f (diff) | |
Merge pull request #2829 from JosJuice/fix-wii-fst-size-2
Fix reading Wii FST size (for real this time)
Diffstat (limited to 'Source/Core/DiscIO/VolumeWiiCrypted.cpp')
| -rw-r--r-- | Source/Core/DiscIO/VolumeWiiCrypted.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/DiscIO/VolumeWiiCrypted.cpp b/Source/Core/DiscIO/VolumeWiiCrypted.cpp index a6ec5a6e33..96fe209d0d 100644 --- a/Source/Core/DiscIO/VolumeWiiCrypted.cpp +++ b/Source/Core/DiscIO/VolumeWiiCrypted.cpp @@ -208,7 +208,7 @@ std::map<IVolume::ELanguage, std::string> CVolumeWiiCrypted::GetNames(bool prefe return ReadWiiNames(opening_bnr); } -u32 CVolumeWiiCrypted::GetFSTSize() const +u64 CVolumeWiiCrypted::GetFSTSize() const { if (m_pReader == nullptr) return 0; @@ -218,7 +218,7 @@ u32 CVolumeWiiCrypted::GetFSTSize() const if (!Read(0x428, 0x4, (u8*)&size, true)) return 0; - return Common::swap32(size); + return (u64)Common::swap32(size) << 2; } std::string CVolumeWiiCrypted::GetApploaderDate() const |
