Merge pull request #2829 from JosJuice/fix-wii-fst-size-2

Fix reading Wii FST size (for real this time)
This commit is contained in:
Lioncash
2015-09-12 00:50:00 -04:00
9 changed files with 11 additions and 11 deletions

View File

@ -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