Skip to content
Permalink
Browse files

GCMemcard: GCMBlock: Move code out of header.

  • Loading branch information...
AdmiralCurtiss committed Apr 21, 2019
1 parent e4094d9 commit 17da22a84fd0da2bb303806459aad558f96ca90b
Showing with 12 additions and 2 deletions.
  1. +10 −0 Source/Core/Core/HW/GCMemcard/GCMemcard.cpp
  2. +2 −2 Source/Core/Core/HW/GCMemcard/GCMemcard.h
@@ -1420,6 +1420,16 @@ s32 GCMemcard::PSO_MakeSaveGameValid(const Header& cardheader, const DEntry& dir
return 1;
}

GCMBlock::GCMBlock()
{
Erase();
}

void GCMBlock::Erase()
{
memset(m_block.data(), 0xFF, m_block.size());
}

Header::Header(int slot, u16 size_mbits, bool shift_jis)
{
// Nintendo format algorithm.
@@ -92,8 +92,8 @@ class MemoryCardBase

struct GCMBlock
{
GCMBlock() { Erase(); }
void Erase() { memset(m_block.data(), 0xFF, m_block.size()); }
GCMBlock();
void Erase();
std::array<u8, BLOCK_SIZE> m_block;
};

0 comments on commit 17da22a

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