mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-30 20:58:54 +00:00
FifoDataFile: Convert MemoryUpdate data member to std::vector
This commit is contained in:
parent
8943d23a4c
commit
437b1294bb
5 changed files with 12 additions and 18 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue