Removes wx from gcmemcard, misc code cleanup

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@869 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
LPFaint99
2008-10-15 02:27:50 +00:00
parent 2195e645fd
commit f417aac20b
3 changed files with 56 additions and 74 deletions

View File

@ -255,11 +255,9 @@ void CMemcardManager::CopyDeleteClick(wxCommandEvent& event)
),
wxFD_OVERWRITE_PROMPT|wxFD_SAVE);
const char * fileName2 = temp2.ToAscii();
int len = temp.length();
if (len > 0)
if (temp.length() > 0)
{
memoryCard[0]->ImportGci(fileName, len, fileName2);
memoryCard[0]->ImportGci(fileName, fileName2);
}
}
break;
@ -278,11 +276,9 @@ void CMemcardManager::CopyDeleteClick(wxCommandEvent& event)
),
wxFD_OPEN | wxFD_FILE_MUST_EXIST);
const char * fileName = temp.ToAscii();
int len = temp.length();
if(len > 0)
if (temp.length() > 0)
{
memoryCard[0]->ImportGci(fileName, len, 0);
memoryCard[0]->ImportGci(fileName, 0);
memoryCard[0]->Save();
ReloadMemcard(m_Memcard1Path->GetPath().mb_str(), 0);
}
@ -303,10 +299,9 @@ void CMemcardManager::CopyDeleteClick(wxCommandEvent& event)
),
wxFD_OPEN | wxFD_FILE_MUST_EXIST);
const char * fileName = temp.ToAscii();
int len = temp.length();
if(len > 0)
if (temp.length() > 0)
{
memoryCard[1]->ImportGci(fileName, len, 0);
memoryCard[1]->ImportGci(fileName, 0);
memoryCard[1]->Save();
ReloadMemcard(m_Memcard1Path->GetPath().mb_str(), 0);
}