mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
FifoDataFile: Convert MemoryUpdate data member to std::vector
This commit is contained in:
@ -946,8 +946,8 @@ wxString FifoPlayerDlg::CreateRecordingMemSizeLabel() const
|
||||
for (size_t frameNum = 0; frameNum < file->GetFrameCount(); ++frameNum)
|
||||
{
|
||||
const std::vector<MemoryUpdate>& memUpdates = file->GetFrame(frameNum).memoryUpdates;
|
||||
for (auto& memUpdate : memUpdates)
|
||||
memBytes += memUpdate.size;
|
||||
for (const auto& memUpdate : memUpdates)
|
||||
memBytes += memUpdate.data.size();
|
||||
}
|
||||
|
||||
return wxString::Format(_("%zu memory bytes"), memBytes);
|
||||
|
Reference in New Issue
Block a user