GCMemcard: Use BigEndianValue for DEntry.m_animation_speed.

This commit is contained in:
Admiral H. Curtiss
2018-11-18 18:05:23 +01:00
parent c3e9f53480
commit 929fd2b41d
3 changed files with 15 additions and 6 deletions

View File

@ -202,7 +202,10 @@ void GCMemcardManager::UpdateSlotTable(int slot)
DEntry d;
memcard->GetDEntry(file_index, d);
const auto speed = ((d.m_animation_speed[0] & 1) << 2) + (d.m_animation_speed[1] & 1);
// TODO: This is wrong, the animation speed is not static and is already correctly calculated in
// GetIconFromSaveFile(), just not returned
const u16 animation_speed = d.m_animation_speed;
const auto speed = (((animation_speed >> 8) & 1) << 2) + (animation_speed & 1);
m_slot_active_icons[slot].push_back({speed, frames});