Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FifoRecorder: Use std::vector for m_Ram and m_ExRam #1670

Merged
merged 1 commit into from Dec 11, 2014

Conversation

lioncash
Copy link
Member

@lioncash lioncash commented Dec 7, 2014

No need to delete/recreate the arrays every time a new recording happens. Just zero it out.

u8 *m_Ram;
u8 *m_ExRam;
std::array<u8, Memory::RAM_SIZE> m_Ram;
std::array<u8, Memory::EXRAM_SIZE> m_ExRam;

This comment was marked as off-topic.

No need to delete/recreate the arrays every time a new recording happens. Just zero it out.
@lioncash lioncash changed the title FifoRecorder: Use std::array for m_Ram and m_ExRam FifoRecorder: Use std::vector for m_Ram and m_ExRam Dec 7, 2014
skidau added a commit that referenced this pull request Dec 11, 2014
FifoRecorder: Use std::vector for m_Ram and m_ExRam
@skidau skidau merged commit fe67230 into dolphin-emu:master Dec 11, 2014
memset(m_Ram, 0, Memory::RAM_SIZE);
memset(m_ExRam, 0, Memory::EXRAM_SIZE);
std::fill(m_Ram.begin(), m_Ram.end(), 0);
std::fill(m_ExRam.begin(), m_ExRam.end(), 0);

This comment was marked as off-topic.

@lioncash lioncash deleted the array branch December 11, 2014 05:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants