Skip to content
Permalink
Browse files

GCMemcard: Remove memsets that don't do anything in GCMemcard::Format().

  • Loading branch information...
AdmiralCurtiss committed Apr 21, 2019
1 parent 88a0773 commit 2d3836441098770a92bdd094958b8c90bf6edb07
Showing with 0 additions and 6 deletions.
  1. +0 −6 Source/Core/Core/HW/GCMemcard/GCMemcard.cpp
@@ -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);

0 comments on commit 2d38364

Please sign in to comment.
You can’t perform that action at this time.