fix for the fix -_- committed wrong version before

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@868 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Shawn Hoffman 2008-10-14 18:00:15 +00:00
parent b75d63131c
commit 2195e645fd
1 changed files with 4 additions and 4 deletions

View File

@ -97,11 +97,7 @@ CEXIMemoryCard::CEXIMemoryCard(const std::string& _rName, const std::string& _rF
memory_card_size = 8 * 1024 * 1024; memory_card_size = 8 * 1024 * 1024;
break; break;
case 2043: case 2043:
nintendo_card_id = 0x00000080;
memory_card_size = 16 * 1024 * 1024;
break;
default: default:
// Because everyone wants the biggest memcard :}
nintendo_card_id = 0x00000080; nintendo_card_id = 0x00000080;
memory_card_size = 16 * 1024 * 1024; memory_card_size = 16 * 1024 * 1024;
break; break;
@ -119,9 +115,13 @@ CEXIMemoryCard::CEXIMemoryCard(const std::string& _rName, const std::string& _rF
} }
else else
{ {
// Create a new 128Mb memcard
nintendo_card_id = 0x00000080; nintendo_card_id = 0x00000080;
memory_card_size = 16 * 1024 * 1024; 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."); LOG(EXPANSIONINTERFACE, "No memory card found. Will create new.");
Flush(); Flush();
Core::DisplayMessage(StringFromFormat("Wrote memory card contents to %s", m_strFilename.c_str()), 4000); Core::DisplayMessage(StringFromFormat("Wrote memory card contents to %s", m_strFilename.c_str()), 4000);