From 2195e645fdfaab231fbaacc95ce18cf7c3a8ad03 Mon Sep 17 00:00:00 2001 From: Shawn Hoffman Date: Tue, 14 Oct 2008 18:00:15 +0000 Subject: [PATCH] fix for the fix -_- committed wrong version before git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@868 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/Core/Src/HW/EXI_DeviceMemoryCard.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/Core/Core/Src/HW/EXI_DeviceMemoryCard.cpp b/Source/Core/Core/Src/HW/EXI_DeviceMemoryCard.cpp index 7744750d56..bda0490221 100644 --- a/Source/Core/Core/Src/HW/EXI_DeviceMemoryCard.cpp +++ b/Source/Core/Core/Src/HW/EXI_DeviceMemoryCard.cpp @@ -97,11 +97,7 @@ CEXIMemoryCard::CEXIMemoryCard(const std::string& _rName, const std::string& _rF memory_card_size = 8 * 1024 * 1024; break; case 2043: - nintendo_card_id = 0x00000080; - memory_card_size = 16 * 1024 * 1024; - break; default: - // Because everyone wants the biggest memcard :} nintendo_card_id = 0x00000080; memory_card_size = 16 * 1024 * 1024; break; @@ -119,8 +115,12 @@ CEXIMemoryCard::CEXIMemoryCard(const std::string& _rName, const std::string& _rF } else { + // Create a new 128Mb memcard nintendo_card_id = 0x00000080; memory_card_size = 16 * 1024 * 1024; + + memory_card_content = new u8[memory_card_size]; + memset(memory_card_content, 0xFF, memory_card_size); LOG(EXPANSIONINTERFACE, "No memory card found. Will create new."); Flush();