mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 22:29:39 -06:00
Fix reading Wii FST size (for real this time)
04fcb72
fixed an issue with reading the Wii FST size, but I found a second
issue when working on PR #2820 - the size must be shifted left by 2.
DiscScrubber and Boot already do this correctly using separate code.
This commit is contained in:
@ -206,7 +206,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;
|
||||
@ -216,7 +216,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
|
||||
|
Reference in New Issue
Block a user