Skip to content
Permalink
Browse files

Merge pull request #8300 from AdmiralCurtiss/gcmemcard-construction

GCMemcard: Rework construction logic.
  • Loading branch information...
Helios747 committed Aug 21, 2019
2 parents 288dd64 + 7b9d43a commit 35eb63de2cbdbddac1cd4f0f721c822659d4dbab
@@ -141,7 +141,7 @@ CEXIMemoryCard::CEXIMemoryCard(const int index, bool gciFolder) : card_index(ind
bool useMC251;
IniFile gameIni = SConfig::GetInstance().LoadGameIni();
gameIni.GetOrCreateSection("Core")->Get("MemoryCard251", &useMC251, false);
u16 sizeMb = useMC251 ? MemCard251Mb : MemCard2043Mb;
u16 sizeMb = useMC251 ? MBIT_SIZE_MEMORY_CARD_251 : MBIT_SIZE_MEMORY_CARD_2043;

if (gciFolder)
{
@@ -241,7 +241,7 @@ void CEXIMemoryCard::SetupRawMemcard(u16 sizeMb)
SConfig::GetDirectoryForRegion(SConfig::ToGameCubeRegion(SConfig::GetInstance().m_region));
MemoryCard::CheckPath(filename, region_dir, is_slot_a);

if (sizeMb == MemCard251Mb)
if (sizeMb == MBIT_SIZE_MEMORY_CARD_251)
filename.insert(filename.find_last_of("."), ".251");

memorycard = std::make_unique<MemoryCard>(filename, card_index, sizeMb);

0 comments on commit 35eb63d

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