pcsx2: Initialise g_Conf->Mcd[].Type

Fixes a valgrind warning. Folder memory cards are autodetected later, so
it's safe to set it to a file memory card.
This commit is contained in:
Jonathan Li 2016-07-24 22:25:23 +01:00
parent dbf6b38a2e
commit 77b9f2c15e
1 changed files with 3 additions and 0 deletions

View File

@ -556,6 +556,9 @@ AppConfig::AppConfig()
{ {
Mcd[slot].Enabled = !FileMcd_IsMultitapSlot(slot); // enables main 2 slots Mcd[slot].Enabled = !FileMcd_IsMultitapSlot(slot); // enables main 2 slots
Mcd[slot].Filename = FileMcd_GetDefaultName( slot ); Mcd[slot].Filename = FileMcd_GetDefaultName( slot );
// Folder memory card is autodetected later.
Mcd[slot].Type = MemoryCardType::MemoryCard_File;
} }
GzipIsoIndexTemplate = L"$(f).pindex.tmp"; GzipIsoIndexTemplate = L"$(f).pindex.tmp";