Skip to content

Commit

Permalink
GCMemcard: Remove memsets that don't do anything in GCMemcard::Format().
Browse files Browse the repository at this point in the history
  • Loading branch information
AdmiralCurtiss committed May 25, 2019
1 parent 88a0773 commit 2d38364
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions Source/Core/Core/HW/GCMemcard/GCMemcard.cpp
Expand Up @@ -1275,12 +1275,6 @@ bool GCMemcard::Format(u8* card_data, bool shift_jis, u16 SizeMb)

bool GCMemcard::Format(bool shift_jis, u16 SizeMb)
{
memset(&m_header_block, 0xFF, BLOCK_SIZE);
memset(&m_directory_blocks[0], 0xFF, BLOCK_SIZE);
memset(&m_directory_blocks[1], 0xFF, BLOCK_SIZE);
memset(&m_bat_blocks[0], 0, BLOCK_SIZE);
memset(&m_bat_blocks[1], 0, BLOCK_SIZE);

m_header_block = Header(SLOT_A, SizeMb, shift_jis);
m_directory_blocks[0] = m_directory_blocks[1] = Directory();
m_bat_blocks[0] = m_bat_blocks[1] = BlockAlloc(SizeMb);
Expand Down

0 comments on commit 2d38364

Please sign in to comment.